• Apache error “Error retrieving pid file logs/httpd.pid”

    If you are getting the following error while trying to restart the apache service on the cpanel server

    (20014)Internal error: Error retrieving pid file logs/httpd.pid
    Remove it before continuing if it is corrupted.

    To solve this problem ,Do the following :

    mv /usr/local/apache/logs/httpd.pid /usr/local/apache/logs/httpd.pid.bk

    Then:
    root@Raafat [/usr/local/apache/logs]# /etc/init.d/httpd restart
    Be sure that the apache service is running :
    root@vbex1 [/usr/local/apache/logs]# /etc/init.d/httpd  status

    =================================================
    Apache Server Status for localhost

    Server Version: Apache/2.2.21 (Unix) mod_ssl/2.2.21
    OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4
    FrontPage/5.0.2.2635

    Server Built: Feb 10 2012 02:14:26
    _________________________________________________________________

    Current Time: Monday, 28-May-2012 10:30:30 AST
    Restart Time: Monday, 28-May-2012 10:30:16 AST
    Parent Server Generation: 0
    Server uptime: 13 seconds
    Total accesses: 105 – Total Traffic: 5.1 MB
    CPU Usage: u.25 s.16 cu15.77 cs0 – 124% CPU load
    8.08 requests/sec – 405.5 kB/second – 50.2 kB/request
    9 requests currently being processed, 8 idle workers

    WW_W_W___._WWW.W.W__……………………………………..
    ……………………………………………………….
    ……………………………………………………….
    ……………………………………………………….

    Scoreboard Key:
    “_” Waiting for Connection, “S” Starting up, “R” Reading Request,
    “W” Sending Reply, “K” Keepalive (read), “D” DNS Lookup,
    “C” Closing connection, “L” Logging, “G” Gracefully finishing,
    “I” Idle cleanup of worker, “.” Open slot with no current process
    =================================================

    Categories: Apache

    Comments are currently closed.