Commit 2f011aae authored by ale's avatar ale
Browse files

Update to PHP 7.4

parent 6482b800
Pipeline #19854 passed with stage
in 34 seconds
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment