When sites stop responding or mail breaks, the cause is usually one service that has hung or eaten the memory. Restarting just that service fixes it in seconds, without taking mail down because you restarted the web server, or the other way round. It is quicker and less disruptive than rebooting the server.
- Access to WHM as root at
https://your-server-hostname:2087(or the server IP on port 2087). Avoid the old port 2086: it is not encrypted. - An idea of which service is at fault. If you are not sure, start with Service Status in checking server health.
Where is the menu? #
Restart Services is a group near the bottom of the WHM sidebar. Quickest: type Restart into the search box at the top of the menu.

Which service should you restart? #
| Menu item | What it runs | When to restart it |
|---|---|---|
| HTTP Server (Apache) | Serving websites | Sites do not load or return 503, or after editing Apache settings |
| PHP-FPM service for Apache | Running PHP | PHP sites are slow or return 503 while static pages work |
| Database Server | MySQL or MariaDB | WordPress shows “Error establishing a database connection” |
| Mail Server (Exim) | Sending and receiving mail | Messages stuck in the queue or not sending |
| IMAP Server | Dovecot, for reading mail | Mail apps and phones cannot connect |
| DNS Server | The nameserver | DNS edits do not show and this server is the domain’s nameserver |
| SSH Server (OpenSSH) | SSH logins | Only after editing SSH settings, and carefully |
| Mailing List Manager (Mailman) | Mailing lists | Mailing lists are not sending |
Restarting a service #
- Choose the service from the Restart Services menu.
- Read the question the page asks whether you are sure you wish to restart this service.
- Click Restart WHM shows the result and the service status afterwards.
- Confirm it worked look for a line saying the service is running, then test the site or mail.
From the command line #
cPanel ships a script for each service, run as root:
/scripts/restartsrv_httpd # Apache /scripts/restartsrv_mysql # database /scripts/restartsrv_exim # mail transfer /scripts/restartsrv_dovecot # IMAP and POP3 /scripts/restartsrv_cpsrvd # the cPanel and WHM interfaces themselves
The last one is handy when WHM or cPanel will not load while the sites themselves are fine.
The service will not come back? #
- Read the error WHM shows after Restart; it usually names the file or line at fault.
- Check the log for Apache:
/etc/apache2/logs/error_log; for the database, the error log in its data directory; for mail:/var/log/exim_mainlog. - Undo the last change most failures follow a manual configuration edit.
- Check disk space a full disk stops many services starting. See Show Current Disk Usage.
Let the server restart them for you #
cPanel’s chkservd watches services and restarts any that stop. Choose which ones it monitors in Service Configuration, then Service Manager, by ticking Monitor for each service.
- The service shows up in Service Status.
- The original problem is gone.
- No new errors in the log.
Service questions #
Do sites go down when Apache restarts?
Only for a few seconds, and visitors may not notice.
Is mail lost when Exim restarts?
No. Queued messages are kept on disk and sent once the service is back.
What is the difference between restarting a service and rebooting?
A service restart restarts one program while the rest keep running; a reboot stops everything until the server boots again.