![Restarting PHP on an NGINX server cover image](/assets/images/snippets-1.png)
Restarting PHP on an NGINX server
Sam Ciaramilaro • February 7, 2016
Snippets# 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