Restarting PHP on an NGINX server
Published
in
Devops
on Feb 7, 2016
Note: prepend sudo if not root
Using SysV Init scripts directly:
/etc/init.d/php-fpm restart # typical
/etc/init.d/php8-fpm restart # debian-style
Using service wrapper script
service php-fpm restart # typical service php5-fpm restart # debian-style
Using Upstart (e.g. ubuntu):
restart php5-fpm # typical (ubuntu is debian-based)
restart php-fpm # uncommon
Using systemd (newer servers)
systemctl restart php-fpm.service # typical
systemctl restart php5-fpm.service # uncommon