Monday, August 9, 2010

Installing Apache Webserver on Fedora 12

1. Download the latest stable version of Apache webserver from the apache website
2. Create a directory apache2 in your home directory and copy the tar file there
(This is not mandatory, this is just to ease your installation)
[sridhar@Matrix ~]$ mkdir apache2
3. change to root
[sridhar@Matrix ~]$ su Password: [root@Matrix sridhar]#
4. copy the download file to the newly created apache2 folder
in this case
[root@Matrix ~]# cp /home/sridhar/Downloads/httpd-2.2.16.tar.gz /home/sridhar/apache
5. Unzip the file
[root@Matrix ~]# gzip -d httpd-2.2.16.tar.gz
6. Untar the file
[root@Matrix ~]# tar -xvf httpd-2.2.16.tar
7. [root@Matrix ~]# ./configure --prefix=/opt/apache2
This will install apache in /opt/apache2 location, default location is /usr/local/apache2
8. [root@Matrix ~]# make
9. [root@Matrix ~]# make install
10. [root@Matrix ~]# /opt/apache2/bin/apachectl start

Open a webbrowser and type in http://localhost, you must be able to see this

No comments:

Post a Comment