How to run NGINX services in cPanel

September 13, 2023 / cPanel & WHM

This article explains how to stop, start, or restart NGINX services in cPanel.

Follow the steps given below:

  1. Execute the following command to stop, start, or restart NGINX on cPanel-
    /usr/local/cpanel/scripts/restartsrv_nginx
  1. 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).
  2. 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.

 

Spread the love