cpanel pid file exists

In Some occations restarting cpanel service from Terminal/Shell using command “service cpanel restart” if you are getting “cpsrvd dead but pid file exists”, then let us know what should be done to resolve the issue.

root@server[#]/etc/init.d/cpanel status
cpsrvd dead but pid file exists
entropychat (pid 7397) is running…
melange is stopped
stunnel (pid 7523) is running…
interchange is stopped
qrunner is stopped

please check whether “cpsrvd” is running or not, using following command.

root@server[#]ps aux|grep cpsrvd
root 25755 0.0 1.3 12664 7072 pts/0 S 04:31 0:00 cpsrvd – waiting for connections
root 30218 0.0 0.1 3012 724 pts/0 S+ 04:37 0:00 grep cpsrvd

If cpsrvd is running on the server then Iptables must be blocking the port cpanel currently running on and hence we need to disable the Default firewall of the Linux i.e., iptables.

But it is strongly recommended that firewall like CSF should be installed on the server to block “Failed Login Attempts”.

Follow these steps :

root@server[#]service iptables stop
root@server[#] /etc/init.d/cpanel restart
root@server[#]/etc/init.d/cpanel status

If still the issue persist, edit the cpanel deamon file :

root@server[#]vi /etc/init.d/cpanel change

change “status cpsrvd” to “status cpsrvd-ssl” and save the changes.

root@server[#]/etc/init.d/cpanel restart
root@server[#]/etc/init.d/cpanel status

This will resolve the issue.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s