Enabling mod status for Monitoring Apache HTTPD
#ApacheHTTPD #mod_status #WebServer
Full steps can be found at https://i12bretro.github.io/tutorials/0036.html
--------------------------------------------------------------------
Enabling mod_status in Apache HTTPD
--------------------------------------------------------------------
01. Navigate to the PHP install directory
02. Edit /php.ini
03. Press CTRL+F, type curl, press Enter
04. Uncomment the extension to enable it by removing the ; at the start of the line
extension=curl
05. Navigate to the Apache install directory
06. Edit /conf/httpd.conf
07. Press CTRL+F, type mod_status, press Enter
08. Uncomment the module to enable it by removing the # at the start of the line
LoadModule status_module modules/mod_status.so
09. At the bottom of the file paste the following
ExtendedStatus On
≪location /server-status≫
SetHandler server-status
Order allow,deny
Allow from all
≪/location≫
10. Note: By default this will only allow access from the host Apache is running on
11. Restart the Apache service to apply the changes
12. Open a web browser and navigate to http://DNSorIP/server-status
a. ?refresh=5 will refresh the display every 5 seconds
b. ?auto will display the output in a text only format
15. Cringe at the output displayed
--------------------------------------------------------------------
Style and Modernize /server-status
--------------------------------------------------------------------
01. Download PHP Simple DOM https://sourceforge.net/projects/simplehtmldom/files/ https://simplehtmldom.sourceforge.io/manual.htm
02. Create a status folder inside apache/htdocs
03. Copy/Paste simple_html_dom.php inside apache/htdocs/status
04. Download server-status.php https://drive.google.com/open?id=1f1HBZgdjTcYuYq6ut4PXyiaYC7vGd_ty
05. Copy/Paste server-status.php inside apache/htdocs/status
06. Open a web browser and navigate to http://DNSorIP/status/server-status.php
a. ?getStatus will return a JSON output of the server-status data
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro