Answered by the Webhosting Experts

Apache status is not showing up in WHM.

Solution

This is usually due to the server-status directive being commented out.

1. Back up your current httpd.conf

root@cpanel [~]# cd /usr/local/apache/conf
root@cpanel [/usr/local/apache/conf]# cp httpd.conf httpd.conf.save.`date +%s`
root@cpanel [/usr/local/apache/conf]# ls -la httpd.conf*
-rw——- 1 root root 45279 Oct 28 18:44 httpd.conf
-rw——- 1 root root 45279 Nov 10 01:27 httpd.conf.save.1131607650
root@cpanel [/usr/local/apache/conf]#

The date +%s above outputs the current date in the “seconds since `00:00:00 1970-01-01 UTC'” format.

2. Open httpd.conf with your favorite editor and uncomment the following directive and allow localhost to browse it.

<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>

3. Test the apache configuration and gracefully restart it.

root@cpanel [~]# /etc/init.d/httpd configtest
Syntax OK
root@cpanel [~]# /etc/init.d/httpd graceful
/etc/init.d/httpd graceful: httpd gracefully restarted
root@cpanel [~]#

4. Verfiy that you can not get apache status from the localhost.

root@cpanel [~]# /etc/init.d/httpd status

Apache Server Status for cpanel

Server Version: Apache/1.3.33
Server Built: May 2 2005 08:23:17
_________________________________________________________________

Current Time: Thursday, 10-Nov-2005 01:35:06 CST
Restart Time: Friday, 28-Oct-2005 18:44:17 CDT
Parent Server Generation: 1
Server uptime: 12 days 7 hours 50 minutes 49 seconds
Total accesses: 2467 – Total Traffic: 98.3 MB
CPU Usage: u2.74 s2.97 cu.37 cs.3 – .000599% CPU load
.00232 requests/sec – 96 B/second – 40.8 kB/request
1 requests currently being processed, 4 idle servers
W____…………………………………………………..
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….
……………………………………………………….

Scoreboard Key:
“_” Waiting for Connection, “S” Starting up, “R” Reading Request,
“W” Sending Reply, “K” Keepalive (read), “D” DNS Lookup,
“L” Logging, “G” Gracefully finishing, “.” Open slot with no current
process
root@cpanel [~]#

Need More Personalized Help?

If you have any further issues, questions, or would like some assistance checking on this or anything else, please reach out to us from your my.hivelocity.net account and provide your server credentials within the encrypted field for the best possible security and support.

If you are unable to reach your my.hivelocity.net account or if you are on the go, please reach out from your valid my.hivelocity.net account email to us here at: support@hivelocity.net. We are also available to you through our phone and live chat system 24/7/365.