On any web hosting server, it’s very important to be able to easily control the main services, like the Apache server, FTP server etc.
![cwp services status](https://www.plothost.com/wp-content/uploads/2018/04/cwp-services-status.png)
To start/stop/restart & view service statuses in CWP:
- Log into CWP as root
- On the main page(Dashboard), look for the Services Status section
- Here you can see the main services on the server: Apache Webserver, FTP Server, MySQL Database Server, BIND DNS Server, SSH Server, Crontab and the Mail Server Services (Postfix Mail Server, Dovecot IMAP/POP3 Server, ClamAV, AmaVIS, Spam Assassin)
- Work with them via the corresponding Start/Stop/Restart/Status buttons.
To configure start-up services go to Services Config->Startup Services. Here you can Enable/Disable the start-up server’ services.
Notice that you can also start/stop/restart/see the status of the CWP service. This can be done via the command line with commands: service cwpsrv start; service cwpsrv stop ; service cwpsrv restart ; service cwpsrv status. Output example:
[root@cwp1 ~]# service cwpsrv status
Redirecting to /bin/systemctl status cwpsrv.service
* cwpsrv.service - CentOS Web Panel service (daemon)
Loaded: loaded (/usr/lib/systemd/system/cwpsrv.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2018-03-30 14:29:25 EDT; 12s ago
Process: 12110 ExecStop=/bin/kill -s QUIT $MAINPID (code=exited, status=0/SUCCESS)
Process: 12118 ExecStart=/usr/local/cwpsrv/bin/cwpsrv (code=exited, status=0/SUCCESS)
Process: 12115 ExecStartPre=/usr/local/cwpsrv/bin/cwpsrv -t (code=exited, status=0/SUCCESS)
Main PID: 12119 (cwpsrv)
CGroup: /system.slice/cwpsrv.service
|-12119 cwpsrv: master process /usr/local/cwpsrv/bin/cwpsrv
|-12120 cwpsrv: worker process
`-12121 cwpsrv: worker process
Mar 30 14:29:25 cwp1 systemd[1]: Starting CentOS Web Panel service (daemon)...
Mar 30 14:29:25 cwp1 cwpsrv[12115]: cwpsrv:the configuration file /usr/local/cwpsrv/conf/cwpsrv.conf syntax is ok
Mar 30 14:29:25 cwp1 cwpsrv[12115]: cwpsrv:configuration file /usr/local/cwpsrv/conf/cwpsrv.conf test is successful
Mar 30 14:29:25 cwp1 systemd[1]: Failed to read PID from file /usr/local/cwpsrv/var/run/nginx.pid: Invalid argument
Mar 30 14:29:25 cwp1 systemd[1]: Started CentOS Web Panel service (daemon).
[root@cwp1 ~]#
The short video tutorial for this article: