How to install apache in Ubuntu?

Posted by Joys of Programming on in PHP

Apache can be installed in Linux using source. It can be easily installed in Ubuntu using the following command


$ sudo apt-get install apache2

But after installation, you can verify that in the browser. Enter http://localhost/. If everything is fine, the page can be displayed with no connection errors.

To start/restart apache


$ sudo /etc/init.d/apache2 start

or


$ sudo /etc/init.d/apache2 restart

To stop the apache server


$ sudo /etc/init.d/apache2 stop

Reblog this post [with Zemanta]


Tags: , , , , , , ,

Comments:

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Copyright © 2009-2012 Joys of Programming All rights reserved.
Desk Mess Mirrored v1.8.1 theme from BuyNowShop.com.