Skip to content

Commit

Permalink
[5.x] Allow PHP-FPM pool to run as root (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
shinsenter authored Aug 29, 2024
1 parent 5b8271b commit 3146ea7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/php/with-apache/apache-config.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ fi
if has-cmd s6-service; then
s6-service php-fpm longrun '#!/usr/bin/env sh
cd "$(app-path)"
exec php-fpm -y /usr/local/etc/php-fpm.d/zz-generated-settings.conf --nodaemonize -d clear_env=no'
exec php-fpm -y /usr/local/etc/php-fpm.d/zz-generated-settings.conf --nodaemonize --allow-to-run-as-root -d clear_env=no'

s6-service apache depends php-fpm
s6-service apache longrun '#!/usr/bin/env sh
Expand Down
2 changes: 1 addition & 1 deletion src/php/with-nginx/nginx-config.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if nginx-test 'http3'; then rm -f /etc/nginx/custom.d/*http3.conf; fi
if has-cmd s6-service; then
s6-service php-fpm longrun '#!/usr/bin/env sh
cd "$(app-path)"
exec php-fpm -y /usr/local/etc/php-fpm.d/zz-generated-settings.conf --nodaemonize -d clear_env=no'
exec php-fpm -y /usr/local/etc/php-fpm.d/zz-generated-settings.conf --nodaemonize --allow-to-run-as-root -d clear_env=no'

s6-service nginx depends php-fpm
s6-service nginx longrun '#!/usr/bin/env sh
Expand Down

0 comments on commit 3146ea7

Please sign in to comment.