Apache status in command line

Apache module mod_status

There is also mod_status built into Apache web server to get server status from a web browser. With this module you can easily find out how well your server is preforming. All reports are generated in a html format. You can easily find out following type of information:

Total number of worker serving requests
Total number of of idle worker
Find the status of each worker, the number of requests that worker has performed and the total number of bytes served by the worker
Total number byte count served
Other information such as CPU usage, number of requests per second,current hosts and requests being processed etc.

We can view the apache status through WHM -> Server Status » Apache Status

How to enable apache status page in cpanel server

Open your httpd.conf

# vi /etc/httpd/conf/httpd.conf

Enable Apache extended status page

<IfModule mod_status.c>
ExtendedStatus On
<Location /whm-server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost 127.0.0.1
</Location>
</IfModule>

In order to apache status in command line, use this lynx command

wget -q -O – localhost/whm-server-status | lynx -stdin

Rather use this elinks command

elinks http://localhost/whm-server-status?refresh=2

 

0.00 avg. rating (0% score) - 0 votes
Website Pin Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google StumbleUpon Premium Responsive