WHM/cPanel

How to restart services in cPanel WHM and SSH

This article show how to Restart Service in cPanel from interface or using SSH command line

Restart Service in cPanel HWM

WHM allows you to restart the basic services included in hosting server , Most common of those services are:

  1. DNS Server: translates domain names to IP addresses so browsers can load resources.
  2. FTP Server:Standard communication protocol used for the transfer of computer files.
  3. (Apache) HTTP Server:Most commonly used Web server on Linux systems.
  4. IMAP Server:Internet Message Access Protocol.
  5. (Exim) Mail Server: Is a mail transfer agent (MTA) used on Unix-like operating systems.
  6. (Mailman) Mailing List Manager:Is a system for managing electronic mailing lists.
  7. PHP-FPM service for Apache:FastCGI Process Manager is a web tool used to speed up the performance of a website.
  8. SQL Server (MySQL):Is an open source relational database management system.
  9. (OpenSSH) SSH Server:Is the premier connectivity tool for remote login with the SSH protocol that encrypts all traffic.

To Restart Service in cPanel for one of those services :

  1. Login to your WHM control panel.
  2. Navigate to Home »Restart Services .
  3. Select the service you want to restart as example”DNS Server“.
  4. You will get confirmation restart message “Are you sure you wish to restart this service?” , click Yes button.
  5. the service will restart and you will get service name restarted successfully.

Restart Services using SSH commands

There is two way to restart cPanel services from SSH command line

  • The first is to use the service command to issue commands to the service you wish to work with. For example: service httpd restart This will issue a restart command to Apache.
  • The second would be to directly interact with the init script on the server. An example of this would be, /etc/init.d/httpd restart This will issue a restart command to Apache.
    
     service httpd restart 
/etc/init.d/httpd restart
    
   
XsoftHost Support

Share

Recent Posts

Add Extra IP addresses to server configuration On Ubuntu 17.10 and later

Each failover IP address will need its own line in the configuration file. The configuration…

4 years ago

Create RAID Arrays with mdadm on Ubuntu

What is mdadm? The mdadm utility can be used to create and manage storage arrays…

4 years ago

How to change the maximum upload file size for PHP

There are several scenarios that you might need to increase or decrease your php maximum…

6 years ago

How to install Let’s Encrypt Plugin in WHM/cPanel

What is Let’s Encrypt? Let’s Encrypt is a free certificate authority provided by the Internet…

6 years ago

How to install python in my cPanel and add py extension

Python normally installed on all cPanel hosting server because most of Centos/red hat update system…

6 years ago

How to install and enable GUI GNOME Desktop on centos 7

Usually CentOS 7 comes in a numbers of variants, For most users, there are two…

6 years ago