Restart NGINX, Apache, or PHP-FPM Services

NGINX:

nginx -s reload
# or
service nginx restart
# or
/etc/init.d/nginx restart
# or
systemctl restart nginxCode language: Bash (bash)

Apache:

apache2ctl restart
# or
/etc/init.d/apache2 restartCode language: Bash (bash)

PHP-FPM:

/etc/init.d/php-fpm restart
# or
/etc/init.d/php7.2-fpm restart
# or
service php-fpm restart
# or
service php5-fpm restart
# or
service php7.0-fpm restart
# or
restart php-fpm
# or
service php-fpm restartCode language: Bash (bash)

Posted

in

, ,

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.