A set of really basic systemd
configs for starting Nginx and PHP-FPM on system boot.
- Ensures Nginx web server has started before starting the PHP-FPM process.
- 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.
Both scripts placed in /lib/systemd/system
and enabled by the following: