@@ -220,7 +220,7 @@ If you're not already running an Apache server, you can run your X project with
220220Apache in a temporary Docker container like this:
221221
222222``` bash
223- $ docker run -it --rm -p 80:80 -v " $PWD " :/srv php:8.1 -apache sh -c " rmdir /var/www/html;ln -s /srv/public /var/www/html;ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled; apache2-foreground"
223+ $ docker run -it --rm -p 80:80 -v " $PWD " :/srv php:8.2 -apache sh -c " rmdir /var/www/html;ln -s /srv/public /var/www/html;ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled; apache2-foreground"
224224```
225225
226226In order to check your web application responds as expected, you can use your
@@ -304,10 +304,10 @@ limit to match your concurrency workload. On Ubuntu- or Debian-based systems,
304304you may change your PHP configuration like this:
305305
306306``` bash
307- $ sudoedit /etc/php/8.1 /cli/php.ini
307+ $ sudoedit /etc/php/8.2 /cli/php.ini
308308```
309309
310- ``` diff title="/etc/php/8.1 /cli/php.ini"
310+ ``` diff title="/etc/php/8.2 /cli/php.ini"
311311- memory_limit = 128M
312312+ memory_limit = -1
313313```
@@ -519,7 +519,7 @@ be achieved by using a `Dockerfile` with the following contents:
519519
520520 ```docker title="Dockerfile"
521521 # syntax=docker/dockerfile:1
522- FROM php:8.1 -cli
522+ FROM php:8.2 -cli
523523
524524 WORKDIR /app/
525525 COPY public/ public/
@@ -541,14 +541,14 @@ be achieved by using a `Dockerfile` with the following contents:
541541 COPY composer.json composer.lock ./
542542 RUN composer install --no-dev --ignore-platform-reqs --optimize-autoloader
543543
544- FROM php:8.1 -alpine
544+ FROM php:8.2 -alpine
545545
546546 # recommended: install optional extensions ext-ev and ext-sockets
547- RUN apk --no-cache add ${PHPIZE_DEPS} libev \
547+ RUN apk --no-cache add ${PHPIZE_DEPS} libev linux-headers \
548548 && pecl install ev \
549549 && docker-php-ext-enable ev \
550550 && docker-php-ext-install sockets \
551- && apk del ${PHPIZE_DEPS} \
551+ && apk del ${PHPIZE_DEPS} linux-headers \
552552 && echo "memory_limit = -1" >> "$PHP_INI_DIR/conf.d/acme.ini"
553553
554554 WORKDIR /app/
0 commit comments