Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

How to restart the cPanel service using SSH

Use the command line to restart cPanel when the panel will not load.

WHM1 min read6 steps

This guide needs root access. Root is the all-powerful admin user on a server. VPS and dedicated server owners have it.

What does this do?

cPanel is the control panel for managing websites and email. It runs as a service, which is a program that works in the background. Sometimes the panel gets stuck and the login page will not open. Restarting the service often fixes this. SSH is a safe way to type commands on a faraway server.

Restarting cPanel does not turn off your websites. It only affects the panel pages for a short time.

Steps

  1. Open an SSH program. On Windows you can use PuTTY. On Mac or Linux use the Terminal app.
  2. Connect to your server with its IP address and root details:
    ssh root@your-server-ip
    Your welcome email holds the IP address. If you cannot find it, ask support.
  3. Type the password when asked. Nothing shows on the screen while you type. This is normal.
  4. Restart cPanel with this command:
    /scripts/restartsrv_cpsrvd
    It restarts the program that serves the cPanel and WHM pages.
  5. Check that it is running:
    /scripts/restartsrv_cpsrvd --status
  6. Open WHM or cPanel in your browser. Use the ports 2087 for WHM and 2083 for cPanel.

Other helpful commands

CommandWhat it does
/scripts/restartsrv_httpdRestarts Apache, the web server
/scripts/restartsrv_mysqlRestarts the database service
/scripts/restartsrv_eximRestarts the mail sending service
/scripts/restartsrv_namedRestarts the DNS service
Tip: If the panel still does not load, check that the disk is not full with df -h. A full disk is a common cause.

If nothing works, open a ticket at https://secure.hostvento.com/submitticket.php.

Quick recap

  • Log in as root over SSH.
  • Run /scripts/restartsrv_cpsrvd to restart cPanel.
  • Websites keep running during this restart.
  • Other restartsrv_ scripts restart other services.
  • Check free disk space if problems continue.