Skip to content

Commit

Permalink
Allow PHP-FPM execution via supervicsor as root
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnert committed Apr 27, 2017
1 parent 5f8a4db commit 377e8d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

## Features

* Allow PHP-FPM execution via supervicsor as root
* Add MySQL installation to Dockerfile

# Version 1.1.4-beta7
Expand Down
9 changes: 8 additions & 1 deletion etc/supervisor/conf.d/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ stderr_events_enabled=true

[program:appserver-php5-fpm]
directory = /opt/appserver
command = sbin/php-fpm -F --php-ini /opt/appserver/etc/php-fpm-fcgi.ini --fpm-config /opt/appserver/etc/php-fpm.conf
command = sbin/php-fpm -R -F --php-ini /opt/appserver/etc/php-fpm-fcgi.ini --fpm-config /opt/appserver/etc/php-fpm.conf
user = root
autostart = true
stdout_events_enabled=true
Expand All @@ -25,6 +25,13 @@ autostart = true
stdout_events_enabled=true
stderr_events_enabled=true

[program:mysqld]
command = mysqld
user = root
autostart = true
stdout_events_enabled=true
stderr_events_enabled=true

[eventlistener:stdout]
command = supervisor_stdout
buffer_size = 10
Expand Down

0 comments on commit 377e8d5

Please sign in to comment.