Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: cPanel Error "cpsrvd dead but pid file exists" [solved]  (Read 3854 times)

0 Members and 1 Guest are viewing this topic.

nirmal

  • Jr. Member
  • **
  • Posts: 56
  • Karma: +0/-0
cPanel Error "cpsrvd dead but pid file exists" [solved]
« on: December 29, 2013, 01:27:51 pm »
Guys,

Sometimes one might get error while restarting cPanel service from shell using as "cpsrvd dead but pid file exists". There is nothing to get panic, just follow the simple solution provided below:

Error:

    root@server
  • service 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

Solution:

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 below steps :

    root@server
  • service iptables stop

    root@server
  • /usr/local/cpanel/cpsrvd

    root@server
  • service cpanel restart

    root@server
  • service cpanel status


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

    root@server
  • vi /etc/init.d/cpanel change


change "status cpsrvd" to "status cpsrvd-ssl" and save the changes.

    root@server
  • service cpanel restart

    root@server
  • service cpanel status


If any feedback, queries are always welcome!  ;)
Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!