A set of really basic systemd
configs for starting Nginx and PHP-FPM on system boot.
- Will ensure Nginx web server has started before kicking off PHP-FPM process.
- PHP-FPM pid file placed in
/run/php7
, PHP7 PHP-FPM config at/etc/php7
. - Based on usage with Ubuntu 16.04LTS.
Both scripts placed in /lib/systemd/system
and enabled by the following:
$ sudo systemctl enable nginx.service
$ sudo systemctl enable php-fpm.service
Fin.