Wednesday, 10 December 2008

Install Apache HTTPD in Ubuntu (VirtualBox)

In your Ubuntu virtual server, open your web browser and download the latest source (tar.gz) image from http.apache.org.

Open a terminal session and install apache as follows:

sudo cp httpd*gz /opt
cd /opt
sudo bash
gunzip httpd*
tar xvf httpd*.tar
rm -f httpd*.tar

cd httpd*
./configure --prefix=/opt/apache2
make
make install

Now you can start the server with

sudo /opt/apache2/bin/apachectl -k start

and stop the server with

sudo /usr/apache2/bin/apachectl -k stop

Check the server is running by opening your browser and navigating to:

http://localhost

For further information, have a look at

http:/httpd.apache.org/docs/2.2/install.html

No comments:

Post a Comment