Introduction
Services on a cPanel server may be restarted from the "Restart Services" interface in WHM or from the command line. This article provides the procedure to restart a service from the command line.
Procedure
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Run the
restartsrv
script for the desired service./usr/local/cpanel/scripts/restartsrv_SERVICE
Please note that "SERVICE" must be replaced with the appropriate service name (i.e.,httpd
,exim
,sshd
, etc.).
Additional resources
How to Restart Services: Restart services in the WHM interface