# 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](https://docs.cpanel.net/whm/scripts/the-restartsrv-script/).

::: info
Using a `*` instead of the service name **_does NOT_** restart every single service. It will instead only restart httpd.
:::
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9