Step3 : Uncompress it and change the directory to source directory
#tar xvfz httpd-2.2.17.tar.gz
#cd httpd-2.2.17
Step4 : Now compile the source code
#./configure
#make
#make install
Or
The above three commands can be clubbed together to save time
#./configure && make && make install
Note1 : All the configuration files related to apache are stored in /usr/local/apache2/When we install the source package by default. But if we install it through package installation softwares such as rpm/yum/apt-get the configuration files are stored in /etc/httpd folder
Note2 :This is important and interview question too. Can we run two apache servers at a time?
Ans : The answer to this question is yes. And it's possible if we use source package to install in two different locations say in /opt and /opt1 and the variable “Listen” is set to different. Ports for this two servers(Bit complex to understand. If you have any questions ask it at http://forums.linuxnix.com our new Linux/Unix forums not officially announced.
Step5 :Now start the service.
#/usr/local/apache2/bin/apachectl start
Step6 : Check if the web server is running or not by accessing local host
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.