Skip to content
Snippets Groups Projects
Commit 2f011aae authored by ale's avatar ale
Browse files

Update to PHP 7.4

parent 6482b800
No related branches found
No related tags found
2 merge requests!4Use S6,!3Bullseye
Pipeline #19854 passed
......@@ -45,7 +45,7 @@ echo "export PHP_FPM_EXPORTER_PORT=\`expr \$APACHE_PORT + 200\`" >> /etc/apache2
# Enable php configuration.
a2enmod proxy_fcgi setenvif
a2enconf -q php7.3-fpm
a2enconf -q php7.4-fpm
# Rsync our configuration, on top of /etc.
rsync -a /tmp/conf/ /etc/
......
......@@ -4,10 +4,10 @@ fpm-setup.service: {
type: oneshot,
}
fpm.service: {
command: "/usr/sbin/php-fpm7.3 --force-stderr --nodaemonize",
command: "/usr/sbin/php-fpm7.4 --force-stderr --nodaemonize",
exit_kills: true,
}
fpm-exporter.service: {
command: "sh -c '. /etc/apache2/envvars && HOME=/ exec /usr/sbin/php-fpm-exporter server --phpfpm.scrape-uri=unix:///run/php/php7.3-fpm.sock\\;/status --web.listen-address=:$PHP_FPM_EXPORTER_PORT'",
command: "sh -c '. /etc/apache2/envvars && HOME=/ exec /usr/sbin/php-fpm-exporter server --phpfpm.scrape-uri=unix:///run/php/php7.4-fpm.sock\\;/status --web.listen-address=:$PHP_FPM_EXPORTER_PORT'",
restart: true,
}
[global]
pid = /run/php/php7.3-fpm.pid
pid = /run/php/php7.4-fpm.pid
error_log = /dev/fd/2
systemd_interval = 0
include=/etc/php/7.3/fpm/pool.d/*.conf
include=/etc/php/7.4/fpm/pool.d/*.conf
[www]
listen = /run/php/php7.3-fpm.sock
listen = /run/php/php7.4-fpm.sock
pm = dynamic
pm.max_children = 20
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment