Installing and Starting Apache2 Web Server in Ubuntu 12.04

February 4, 2013
By

In this article, we will see how to install Apache2 web server in Ubuntu 12.04 in command mode. We will also see how to start, stop and restart the Apache2 webserver service in command line mode.

And then at last, we will test the installation of the web server by accessing the test page available with the web server.


1. Installing Apache2 Web Server


sudo apt-get install apache2


2. Starting Apache2 Web Server in command line


sudo service apache2 start


3. Stoping Apache2 Web Server in command line


sudo service apache2 stop


4. Restarting Apache2 Web Server in command line


sudo service apache2 restart


5. Open the test page in a web browser by entering the url http://localhost

Apache2 test page

Figure 1 : Apache2 test page

Note : Default path for storing web pages ( document root ) is /var/www


How to hire me?

I am George Mathew, working as software architect and Android app developer at wptrafficanalyzer.in

You can hire me on hourly basis or on project basis for Android applications development.

For hiring me, please mail your requirements to info@wptrafficanalyzer.in.

My other blogs
store4js.blogspot.com


Android Knowledge Quiz

Ready to test your knowledge in Android? Take this quiz :



Tags: , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

Be friend at g+

Subscribe for Lastest Updates

FBFPowered by ®Google Feedburner