# tar jxvf httpd-VERSION.tar.bz2
# cd httpd-VERSION
#
# ./configure --prefix=/usr/local/httpd --enable-so --enable-static-support --enable-rewrite --enable-defalte --enable-expires --enable-headers --enable-ssl --disable-userdir
# make
# make install
# cp build/rpm/httpd.init /etc/rc.d/init.d/httpd
# chkconfig --add httpd
# chkconfig --level 3 httpd on
# service httpd start
Create apache user
Link htdocs and logs
Change application permission
To store httpd applications or logs in other directory,use symbolic link to htdocs or logs
[ if there’s a problem with start and stop httpd,
try to modify /etc/rc.d/init.d/httpd,
pay attention to the path of httpd,httpd.pid and httpd.conf ]
./configure --prefix=/usr/local/httpd --enable-so --enable-static-support --enable-rewrite --enable-defalte --enable-expires --enable-headers --enable-ssl --disable-userdir
apache modules
base:
mod_alias
mod_userdir
extension:
mod_so
mod_rewrite
mod_ssl
mod_deflate
mod_expires
mod_headers
"--disable-FEATURE" same as "--enable-FEATURE=no"
"--enable-MODULE=shared"
"--enable-MODULE=static"
ISSUE
1.Compile httpd with ssl
no SSL-C headers found
configure: error: ...No recognized SSL/TLS toolkit detected
Install openssl-devel