Apache status in command line

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

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 Users Found This Useful
Was this answer helpful?

Related Articles

cPHulk Brute Force Protection

WHM/cPanel has a service, protected from Brute Force attack, which is called “cPHulk Brute Force...

Enable SSH key authorized login without root password

You need to generate SSH Key ( the private key )on your cpanel server and then update remote...

How can I Redirect URLs in cPanel

Login your cpanel 1. Click the Redirects button on the front page under the “domains” 2. Enter...

Enable Custom php.ini for Fast CGI

With fast-cgi, custom php.ini needs to be in the cgi-bin folder. 1) Move php.ini to cgi-bin...

ConfigServer Firewall CSF installation

ConfigServer firewall is a popular linux firewall security suite. It is easy to install, flexible...

Powered by WHMCompleteSolution