Skip to content

Instantly share code, notes, and snippets.

@slava0008
slava0008 / README.md
Created September 11, 2018 06:07 — forked from magnetikonline/README.md
Nginx & PHP-FPM systemd services.

Nginx & PHP-FPM systemd services

A set of really basic systemd configs for starting Nginx and PHP-FPM on system boot.

  • 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: