How To Compile Httpd From Source

# 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


转载于:https://my.oschina.net/tearsky/blog/191327

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值