File tree 3 files changed +6
-4
lines changed
Containers/mastercontainer
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,10 @@ RUN set -ex; \
56
56
sed -i 's/^pm = dynamic/pm = ondemand/' /usr/local/etc/php-fpm.d/www.conf; \
57
57
sed -i 's/^pm.max_children =.*/pm.max_children = 80/' /usr/local/etc/php-fpm.d/www.conf; \
58
58
sed -i 's|access.log = /proc/self/fd/2|access.log = /proc/self/fd/1|' /usr/local/etc/php-fpm.d/docker.conf; \
59
- grep -q ';listen.allowed_clients' /usr/local/etc/php-fpm.d/www.conf; \
60
- sed -i 's|;listen.allowed_clients.*|listen.allowed_clients = 127.0.0.1,::1|' /usr/local/etc/php-fpm.d/www.conf; \
59
+ grep -q 'listen =' /usr/local/etc/php-fpm.d/www.conf; \
60
+ sed -i 's|listen =.*|;listen = /var/run/php.sock # handled in zz-docker.conf|' /usr/local/etc/php-fpm.d/www.conf; \
61
+ grep -q 'listen =' /usr/local/etc/php-fpm.d/zz-docker.conf; \
62
+ sed -i 's|listen =.*|listen = /var/run/php.sock|' /usr/local/etc/php-fpm.d/zz-docker.conf; \
61
63
\
62
64
apk add --no-cache git; \
63
65
wget https://getcomposer.org/installer -O - | php -- --install-dir=/usr/local/bin --filename=composer; \
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ if [ -f "/mnt/docker-aio-config/data/configuration.json" ]; then
5
5
nc -z localhost 8000 || exit 1
6
6
nc -z localhost 8080 || exit 1
7
7
nc -z localhost 8443 || exit 1
8
- nc -z localhost 9000 || exit 1
9
8
nc -z localhost 9876 || exit 1
9
+ [ -f /var/run/php.sock ] || exit 1
10
10
fi
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ Listen 8080
19
19
20
20
# PHP match
21
21
<FilesMatch "\.php$">
22
- SetHandler "proxy:fcgi://localhost:9000 "
22
+ SetHandler "proxy:unix:/var/run/php.sock "
23
23
</FilesMatch>
24
24
# Master dir
25
25
DocumentRoot /var/www/docker-aio/php/public/
You can’t perform that action at this time.
0 commit comments