Step3 : Uncompress it and change the directory to source directory
#tar xvfz httpd-2.2.17.tar.gz
Step4 : Now compile the source code
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.
Step6 : Check if the web server is running or not by accessing local host
Access localhost from browser
Please visit https://www.linuxnix.com for more linux admin stuff
Mr Surendra Anne is from Vijayawada, Andhra Pradesh, India. He is a Linux/Open source supporter who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. He works as Devops Engineer with Taggle systems, an IOT automatic water metering company, Sydney . You can contact him at surendra (@) linuxnix dot com.
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.