cPanel
Restart Services in cPanel
There are many ways to restart services in cPanel, The easiest way is on the WHM interface but it is limited. Another option is to use cli.
WHM Interface
This can be done by Naviating to WHM » Home » Restart Services
& selecting the service to restart then just restart the service.
cPanel Restart Script
This is the better way to restart services on a cpanel server & comes with limitless options. Script:
/usr/local/cpanel/scripts/restartsrv_[SERVICE_NAME]
Some of the accepted services are:
Service Name | Name |
---|---|
cPanel | cpsrvd |
WHM | cpdavd |
cPanel's PHP-FPM Server | cpanel_php_fpm |
cPHulk | cphulkd |
MySql | mysql |
PowerDNS | pdns |
More can be found here.
Using a
*
instead of the service name does NOT restart every single service. It will instead only restart httpd.