Cantech Knowledge Base

Your Go-To Hosting Resource

How to Restart cPanel Service on a Server via SSH?

The Restarting process of cPanel service is very straightforward, but it needs sudo or root privileges, especially when using the restart cPanel service command line. This is essential particularly when troubleshooting bugs, updating or when making changes to configurations.

This guide explains how to restart cPanel service on server via SSH

Steps to Restart cPanel Service

Rebooting server services are important after you change the core settings or if the service faces some issues.

To Restart cPanel Service

1. Log in to your SSH access using the credentials

2. Run the below command

/scripts/restartsrv_cpsrvd

By using the above command, the SSH command successfully activates the service reboot for cPanel on your server.

FAQ’s

How to restart the cPanel using the command prompt?

  • Firstly, Log in to the WHM Server’s root directory.
  • Type the following command, to restart the cPanel service:
  • cPanel service restart. cd /etc/rc.d/init.d. ./cpanel restart.

The cPanel service will be restarted successfully.

How to restart the server from SSH?

  • Login to SSH to access your server.
  • Execute the command by typing it in: sudo reboot.
  • The session will automatically stop and the interface will exit once SSH starts the server reboot.

How to restart cPanel server?

A cPanel server can be restarted with the help of logging in to the server (via SSH) with access to root and running the necessary service restart commands. This is normally done once updates have been made, there have been changes in configurations or even during troubleshooting of server problems.

February 5, 2026