Whilst you can at all times have a peek at Apache log information to get details about your webserver comparable to energetic connections, you will get a really detailed overview of your internet server’s efficiency by enabling the mod_status module.
What’s the mod_status module?
The mod_status module is an Apache module that enables customers to entry extremely detailed details about Apache’s efficiency on a plain HTML web page. Actually, Apache maintains its personal server standing web page for basic public viewing.
You’ll be able to view standing for Apache (Ubuntu) by heading over to the tackle beneath:
Verify Apache Efficiency Standing
The Apache mod_status makes it doable to serve a plain HTML web page containing info comparable to:
- Server model
- Present day and time in UTC
- Server Uptime
- Server load
- Whole site visitors
- Whole variety of incoming requests
- The webserver’s CPU utilization
- PIDs with the respective shoppers and a lot extra.
Let’s now shift gears and see how one can get up-to-date statistics about Apache internet server.
Working System: Ubuntu 20.04
Software: Apache HTTP server
IP tackle: 18.104.22.168
Doc root: /var/www/html
Allow mod_status in Apache Ubuntu
By default, Apache ships with the mod_status module already enabled. You’ll be able to confirm this by checking the mods_enabled listing by working ls command as proven:
$ ls /and so on/apache2/mods-enabled
Verify mod_status Module in Apache Ubuntu
Be certain that the standing.conf and standing.load information are current. If not, you might want to allow mod_status module by invoking the command:
$ sudo /usr/sbin/a2enmod standing
Configure mod_status in Apache Ubuntu
As acknowledged earlier, the mod_status is already enabled. Nevertheless, extra tweaks are required so that you can entry the server-status web page. To take action, you might want to modify the standing.conf file.
$ sudo vim /and so on/apache2/mods-enabled/standing.conf
Set the Require ip directive to mirror the IP tackle of the machine that you may be accessing the server from.
Configure mod_status Module in Apache Ubuntu
Save the adjustments and restart Apache for the adjustments to take impact to verify the standing as proven:
$ sudo systemctl restart apache2
Then confirm the standing of Apache and guarantee it up and working.
$ sudo systemctl standing apache2
Verify Apache Standing in Ubuntu
Thereafter, browse the online server’s URL as proven.
You’ll get a standing HTML web page displaying a bunch of Apache’s info and an array of statistics as proven.
Monitor Apache Ubuntu Efficiency
NOTE: To have the web page refresh after each a given time interval, for instance, 5 seconds, append the “?refresh=5” on the finish of the URL.
This supplies a greater monitoring capability of your server’s efficiency than the plain static HTML web page earlier on.
That’s all for now concerning the mod_status module. Keep Tuned to Tecmint for a lot extra.
If You Admire What We Do Right here On TecMint, You Ought to Contemplate:
TecMint is the quickest rising and most trusted neighborhood website for any sort of Linux Articles, Guides and Books on the net. Hundreds of thousands of individuals go to TecMint! to go looking or browse the 1000’s of revealed articles accessible FREELY to all.
In the event you like what you’re studying, please think about shopping for us a espresso ( or 2 ) as a token of appreciation.
We’re grateful on your by no means ending assist.
apache performance troubleshooting,apache web server blog,health check apache,apache worker threads,apache check requests per second,how to monitor apache web server in linux,enable mod_status apache2 ubuntu,apache load monitoring,server-status apache enable,httpd status url,apache server-status ubuntu,server status require ip,apache server-status 404,apache server-status exploit,apache server-status explained,apache server-status forbidden,apache web server monitoring tools open source,apache web server performance bottlenecks,apache server-status dashboard,apache monitoring,apache server mod_status is publicly accessible