You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sed -i "s#user = nobody.*#user = abc#g" /etc/php7/php-fpm.d/www.conf
27
29
sed -i "s#group = nobody.*#group = abc#g" /etc/php7/php-fpm.d/www.conf
30
+
#fix php-fpm clean_env to allow access to ENVs
31
+
sed -i 's/;clear_env = no/clear_env = no/g' /etc/php7/php-fpm.d/www.conf
32
+
#fix php-fpm to have a static single worker
33
+
sed -i 's/pm = dynamic/pm = static/' /etc/php7/php-fpm.d/www.conf
34
+
sed -i 's/pm.max_children = 5/pm.max_children = 1/' /etc/php7/php-fpm.d/www.conf
28
35
# create override for www.conf if it doesn't exist
29
36
[[ ! -f /config/php/www2.conf ]] && \
30
37
printf "; Edit this file to override www.conf and php-fpm.conf directives and restart the container\\n\\n; Pool name\\n[www]\\n\\n" > /config/php/www2.conf
0 commit comments