Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ai3
docker
apache2-php-base
Commits
2f011aae
Commit
2f011aae
authored
Aug 23, 2021
by
ale
Browse files
Update to PHP 7.4
parent
6482b800
Pipeline
#19854
passed with stage
in 34 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
build.sh
View file @
2f011aae
...
...
@@ -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/
...
...
conf/chaperone.d/fpm.conf
View file @
2f011aae
...
...
@@ -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
,
}
conf/php/7.
3
/fpm/php-fpm.conf
→
conf/php/7.
4
/fpm/php-fpm.conf
View file @
2f011aae
[
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
conf/php/7.
3
/fpm/pool.d/www.conf
→
conf/php/7.
4
/fpm/pool.d/www.conf
View file @
2f011aae
[
www
]
listen
= /
run
/
php
/
php7
.
3
-
fpm
.
sock
listen
= /
run
/
php
/
php7
.
4
-
fpm
.
sock
pm
=
dynamic
pm
.
max_children
=
20
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment