How to check Apache Server Status in ubuntu-12.04
For managing websites in the production environment ubuntu-12.04 is the best server to manage it. As we all know that ubuntu-12.04 is a stable and will get the updates till 2017.For managing website I prefer Apache2 is best stable and compatible with all the other modules available outside.
Apache2 webserver easy for management. Right now we are going to see that how to check the Apache status. Because in production environment we have to monitor hits on the server, load on the server.Please follow the tutorial.
1.First we have to install Apache2 webserver.
$ sudo apt-get install apache2
2. After installing we have to start the apache2 webserver by default it get started but we have to make sure it is .
$ sudo service apache2 restart
3. Now to enable server status we have go inside /etc/apache2/
$ cd /etc/apache2/
$ cd mods-enabled
$ sudo vim status.conf
4. Now uncomment Allow from 192.168.2.0/24 and set it according to your network . And comment the other two line
Comment this two line:-
# Deny from all
# Allow from 127.0.0.1
Uncomment this line:-
Allow from 192.168.1.0/24 <------This is according to my network set your own network
Uncommenting this line will allow you see the server status from the network system.
5. Now restart the Apache2 server and check in web-browser
$ sudo service apache2 restart
That's it you can enjoy using apache server status. Please do comment and like on this posts.You can even do more customization. For more customization logon to apache official website.
23:31
Tags :
Ubuntu-12.04
Subscribe by Email
Follow Updates Articles from This Blog via Email
3 Comments
Thank you! :)
Reply Deletethanks!
Reply Deletethis tutorial helps me a lot.
Never seen such a simple , sweet and wonderful post on Apache2 . Can you please post more basic advanced about apache2 like virtual hosts , security etc.. Thanks a tonne
Reply Delete