Download the package httpd-2.2.14.tar.gz from apache
bash-3.00#cd /usr/local/src/
bash-3.00#/usr/local/bin/tar -xvzf ../packages/httpd-2.2.14.tar.gz
bash-3.00#cd httpd-2.2.14/
bash-3.00#./configure --prefix=/usr/local/apache \
--enable-so \
--enable-cgi \
--enable-info \
--enable-rewrite \
--enable-speling \
--enable-usertrack \
--enable-deflate \
--enable-ssl \
--enable-proxy \
--enable-dav \
--enable-example \
--enable-mime-magic
Note : http://httpd.apache.org/docs/2.2/programs/configure.html for adding more option
make
make install
To Check the compile modules
/usr/local/apache/bin/httpd -l
To Use the Config file
bash-3.00# /usr/local/apache/bin/apachectl -f /usr/local/apache/conf/httpd.conf
To Stop
bash-3.00#/usr/local/apache/bin/apachectl -k stop
bash-3.00#/usr/local/apache/bin/apachectl -k graceful-stop
To Restart
bash-3.00#/usr/local/apache/bin/apachectl -k restart
Adding to init.d to start automatically
bash-3.00#cp /usr/local/apache/bin/apachectl /etc/init.d/
To test
bash-3.00# /etc/init.d/apachectl stop
bash-3.00# /etc/init.d/apachectl start
No comments:
Post a Comment