A basic set of systemd
units for starting Nginx and PHP-FPM daemons on system startup.
- Ensures Nginx web server has started before the PHP-FPM process.
- Nginx pid file placed at
/run/nginx.pid
. - PHP-FPM pid file placed at
/run/php7/php-fpm.pid
, PHP7 PHP-FPM config at/etc/php7
. - Based on usage with Ubuntu 16.04LTS / 18.04LTS.
Unit files are placed in /etc/systemd/system
and enabled with:
$ sudo systemctl enable nginx.service
$ sudo systemctl enable php-fpm.service
Fin.
Thanks!It was helpful for me