ÇáÓí ÈÇäÇá WHM/CPanel ßíÝíÉ Úãá ÑíÓÊÇÑÊ áÌãíÚ ÇáÓíÑÝÓ restart whm all services
Restart Services On a cPanel Server - Restart All Service using Command Line

Restart cPanel Service using Command Line

Did some changes on cPanel/WHM configs and want to restart the cPanel Service?
This can be done using a single command from the root user of the WHM Server.
Restarting cPanel will trigger the restart to all the services lik tail watch, MySQL server, etc on cPanel server.

Procedure

  1. Log in to the root of the WHM Server.
  2. Run the following command to restart the cPanel Service.
    ßæÏ:
     service cpanel restart

The above command with restart the cPanel service using terminal.

----------------------------------------------------
Restart cPanel services using the

ßæÏ:
/usr/local/cpanel/scripts/restartsrv script
If a service will not restart from WHM, then you can use the /usr/local/cpanel/scripts/restartsrv service command to attempt to restart the service from the command line. When you run this command, replace service with the correct value for that service, we have included all of the possible services you can
restart with this script below with an example

Restart Apache on a cPanel Server

ßæÏ:
  /usr/local/cpanel/scripts/restartsrv apache
Restart Bind on a cPanel Server

ßæÏ:
  /usr/local/cpanel/scripts/restartsrv bind


Restart cPanel’s TailWatch log processing service


ßæÏ:
  /usr/local/cpanel/scripts/restartsrv chkservd
Restart ClamAV on a cPanel Server

ßæÏ:
  /usr/local/scpanel/scripts/restartsrv clamd


Restart the cPanel Log Daemon


ßæÏ:
  /usr/local/scpanel/scripts/restartsrv cpanellogd


Restart cPanel’s WebDav Server


ßæÏ:
  /usr/local/scpanel/scripts/restartsrv cpdavd


Restart cPHulk


ßæÏ:
  /usr/local/scpanel/scripts/restartsrv cphulk


Rebind IPv6 Addresses

Run this script with the –list flag to list all of the server’s bound IPv6 addresses.

ßæÏ:
  /usr/local/cpanel/scripts/restartsrv cpipv6


Restart cPanel’s cpsrvd daemon


ßæÏ:
  /usr/local/cpanel/scripts/restartsrv cpsrvd


Restart cPanel’s crond daemon


ßæÏ:
  /usr/local/cpanel/scripts/restartsrv crond


Restart cPanel’s dnsadmin daemon


ßæÏ:
  /usr/local/cpanel/scripts/restartsrv dnsadmin


Restart the Dovecot mail server


ßæÏ:
  /usr/local/cpanel/scripts/restartsrv dovecot


Restart the Entropy chat client


ßæÏ:
  /usr/local/cpanel/scripts/restartsrv entropychat


Restart Exim


ßæÏ:
  /usr/local/cpanel/scripts/restartsrv exim


Restart Exim Mail Statistics Tracker


ßæÏ:
  /usr/local/cpanel/scripts/restartsrv eximstats


Restart FTP on a cPanel Server


ßæÏ:
  /usr/local/cpanel/scripts/restartsrv ftpd or ftpserver


Restart the Apache Web Server


ßæÏ:
  /usr/local/cpanel/scripts/restartsrv httpd


Restart IMAP on a cPanel Server


ßæÏ:
  /usr/local/cpanel/scripts/restartsrv imap


Restart inetd (super-server) on a cPanel Server


ßæÏ:
  /usr/local/cpanel/scripts/restartsrv inetd


Restart the IP Address aliasing software


ßæÏ:
  /usr/local/cpanel/scripts/restartsrv ipaliases


Restart the Mailman Server


ßæÏ:
  /usr/local/cpanel/scripts/restartsrv mailman


Restartthe MyDNS Server

ßæÏ:
 
 /usr/local/cpanel/scripts/restartsrv mydns


Restart the MySQL Database Server


ßæÏ:
  /usr/local/cpanel/scripts/restartsrv mysql
Restart the BIND Nameserver Software

ßæÏ:
  /usr/local/cpanel/scripts/restartsrv named


Restart the NSD Nameserver daemon


ßæÏ:
  /usr/local/cpanel/scripts/restartsrv nsd


Restart the Passive OS Fingerprinting Service


ßæÏ:
  /usr/local/cpanel/scripts/restartsrv p0f


Restart the PostgreSQL Database Service


ßæÏ:
  /usr/local/cpanel/scripts/restartsrv postgres or postgresql


Restart the Queueprocd daemon


ßæÏ:
  /usr/local/cpanel/scripts/restartsrv queueprocd


Restart the Open-Source Lod daemon


ßæÏ:
  /usr/local/cpanel/scripts/restartsrv rsyslogd


Restart the Apache Spam Assassin™ daemon


ßæÏ:
  /usr/local/cpanel/scripts/restartsrv spamd


Restart SSH on a cPanel Server


ßæÏ:
  /usr/local/cpanel/scripts/restartsrv sshd


Restart the Log forwarder daemon


ßæÏ:
  /usr/local/cpanel/scripts/restartsrv syslogd


Restart cPanel’s TailWatch log processing service


ßæÏ:
 /usr/local/cpanel/scripts/restartsrv tailwatchd 

Restart the Apache Tomcat service 

ßæÏ:
/usr/local/cpanel/scripts/restartsrv tomcat


Restart the Open-Spource Super-Server daemon


ßæÏ:
 /usr/local/cpanel/scripts/restartsrv xinetd
ÇáãÑÌÚ:
https://docs.cpanel.net/whm/scripts/...artsrv-script/
https://docs.cpanel.net/whm/server-s...ervice-status/
https://www.basezap.com/restart-cpan...-command-line/
https://blog.first2host.co.uk/restart-cpanel-services/