Blame
64c0d5 | Arpan S. | 2024-04-05 03:39:26 | 1 | # cPanel |
2 | ||||
3 | #### Restart Services in cPanel | |||
4 | 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. | |||
5 | ||||
6 | ##### WHM Interface | |||
7 | This can be done by Naviating to `WHM » Home » Restart Services` & selecting the service to restart then just restart the service. | |||
8 | ||||
9 | ##### cPanel Restart Script | |||
10 | This is the better way to restart services on a cpanel server & comes with limitless options. | |||
11 | Script: | |||
12 | ``` | |||
13 | /usr/local/cpanel/scripts/restartsrv_[SERVICE_NAME] | |||
14 | ``` | |||
15 | ||||
16 | Some of the accepted services are: | |||
17 | ||||
18 | | Service Name | Name | | |||
19 | | ------------ | ---- | | |||
20 | | cPanel | `cpsrvd` | | |||
21 | | WHM | `cpdavd` | | |||
22 | | cPanel's PHP-FPM Server | `cpanel_php_fpm` | | |||
23 | | cPHulk | `cphulkd`| | |||
24 | | MySql | `mysql` | | |||
25 | | PowerDNS | `pdns` | | |||
26 | ||||
27 | More can be found [here](https://docs.cpanel.net/whm/scripts/the-restartsrv-script/). | |||
28 | ||||
29 | ::: info | |||
30 | Using a `*` instead of the service name **_does NOT_** restart every single service. It will instead only restart httpd. | |||
31 | ::: |