This article explains how to stop, start, or restart NGINX services in cPanel.
Follow the steps given below:
- Execute the following command to stop, start, or restart NGINX on cPanel-
/usr/local/cpanel/scripts/restartsrv_nginx
- To restart NGINX, it is highly advised to use the cPanel script, or you can use the Service Manager in WHM to do it. (WHM » Home » Service Configuration » Service Manager).
- If you are running a CentOS 7 server, you should use the reload option as it enables a smooth restart.
systemctl reload nginx.service
That is all! We hope you liked our article. For the latest updates, please visit our website frequently.