Skip to content

Commit

Permalink
meta: upgrade to php8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
voydz committed Aug 13, 2024
1 parent 2e28475 commit 34ac81e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ RUN apt-get update \
# service dependencies
RUN apt-get update \
&& apt-get install -y cron curl zip unzip git supervisor mysql-client \
&& apt-get install -y nginx php8.1-fpm php8.1-cli \
php8.1-gd php8.1-curl php8.1-imap \
php8.1-mysql php8.1-mbstring php8.1-xml \
php8.1-zip php8.1-bcmath php8.1-soap \
php8.1-intl php8.1-readline php8.1-msgpack \
php8.1-igbinary php8.1-redis \
&& apt-get install -y nginx php8.3-fpm php8.3-cli \
php8.3-gd php8.3-curl php8.3-imap \
php8.3-mysql php8.3-mbstring php8.3-xml \
php8.3-zip php8.3-bcmath php8.3-soap \
php8.3-intl php8.3-readline php8.3-msgpack \
php8.3-igbinary php8.3-redis \
&& php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer \
&& apt-get -y autoremove \
&& apt-get clean \
Expand All @@ -31,7 +31,7 @@ RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log

COPY ./config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY ./config/php-fpm.conf /etc/php/8.1/fpm/php-fpm.conf
COPY ./config/php-fpm.conf /etc/php/8.3/fpm/php-fpm.conf
COPY ./config/default /etc/nginx/sites-available/default
COPY ./config/crontab /etc/cron.d/crontab

Expand Down
2 changes: 1 addition & 1 deletion config/default
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ server {

location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
fastcgi_pass unix:/run/php/php8.3-fpm.sock;
}

error_page 404 /index.php;
Expand Down
4 changes: 2 additions & 2 deletions config/php-fpm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
; Pid file
; Note: the default prefix is /var
; Default Value: none
pid = /run/php/php8.1-fpm.pid
pid = /run/php/php8.3-fpm.pid

; Error log file
; If it's set to "syslog", log is sent to syslogd instead of being written
Expand Down Expand Up @@ -122,7 +122,7 @@ daemonize = no
; Relative path can also be used. They will be prefixed by:
; - the global prefix if it's been set (-p argument)
; - /usr otherwise
include=/etc/php/8.1/fpm/pool.d/*.conf
include=/etc/php/8.3/fpm/pool.d/*.conf

; Clear environment in FPM workers. Prevents arbitrary environment variables from
; reaching FPM worker processes by clearing the environment in workers before env
Expand Down
2 changes: 1 addition & 1 deletion config/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0

[program:php-fpm]
command=php-fpm8.1
command=php-fpm8.3
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
Expand Down

0 comments on commit 34ac81e

Please sign in to comment.