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
Comments:
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=9cae96a7-b453-4a11-8d09-1d3f24dd29e0)