The Apache Web server may publish its performance statistics to a special web page. The default URL is
http://servername/server-status. LoadComplete can retrieve the published information and parse out the counter values from it.
To enable publishing of the server status, follow the steps below:
Open the apache configuration file at: <Apache>/conf/httpd.conf.
Search for the "mod_status" text or scroll down until you find a line containing:LoadModule status_module modules/mod_status.so
If there is the "#" character in front of the line, the line is commented out, and consequently, the corresponding module is not loaded. Remove # to load the mod_status module.
Find the following section in the httpd.conf file:# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change ".example.com" to match your domain to enable.
# SetHandler server-status
# Order deny,allow
# Deny from all
# Allow from .your_domain.com
Locationtags: remove the "#" characters in front of the lines that contain the location configuration from between "<Location /server-status>" to "</Location>", inclusive.
This will make the server status accessible at location http://servername/server-status, access will be denied to everybody, but people connecting from the your_domain.com domain and any subdomain of your_domain.com.
Find and uncomment the following section of the httpd.conf file:# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
This will make Apache generate additional information, like CPU use and requests per second.
Save the changes and close the httpd.conf file.
Restart the Apache server.