Configure Apache in Linux
Download Apache Click on the link for "httpd-2.2.xx.tar.gz" and download the installer.
Copy files into the directory you want to install the Apache
Ex: /usr/local/installedapp
copy the httpd-2.2.xx.tar.gz to the directory and extract it using followed command
#tar -xzvf httpd-2.2.xx.tar.gz
move into newly created directory
#cd /usr/local/installedapp/"httpd-2.2.xx
configure the apache
#./configure --prefix=/usr/local/installedapp/"httpd-2.2.xx --enable-mods-shared=all
compile apache
#make
install the apache build
#make install
now you have to start/stop/restart the apache as follow
#/usr/local/installedapp/"httpd-2.2.xx/apachectl {start|stop|restart}
ex: #/usr/local/installedapp/"httpd-2.2.xx/apachectl start (starting apache)
Open the web browser and go to http://localhost:80 It shows apache works!!
Copy files into the directory you want to install the Apache
Ex: /usr/local/installedapp
copy the httpd-2.2.xx.tar.gz to the directory and extract it using followed command
#tar -xzvf httpd-2.2.xx.tar.gz
move into newly created directory
#cd /usr/local/installedapp/"httpd-2.2.xx
configure the apache
#./configure --prefix=/usr/local/installedapp/"httpd-2.2.xx --enable-mods-shared=all
compile apache
#make
install the apache build
#make install
now you have to start/stop/restart the apache as follow
#/usr/local/installedapp/"httpd-2.2.xx/apachectl {start|stop|restart}
ex: #/usr/local/installedapp/"httpd-2.2.xx/apachectl start (starting apache)
Open the web browser and go to http://localhost:80 It shows apache works!!
Comments
Post a Comment