安装apache 2.4.3

上一篇 / 下一篇  2012-09-04 18:54:37 / 个人分类:http server

从http://labs.mop.com/apache-mirror//httpd/下载httpd-2.4.3.tar.gz,解压后安装。51Testing软件测试网M`2} ^%Co8yX\
configure时提示下面的错误:51Testing软件测试网{7U&W"GqXI3D*Lf
checking for APR... apr-1-config: not found
:Z1}-TP"V*`bf0apr-2-config: not found
t:e`)q0D051Testing软件测试网1Ckr@9P |O-L
原因是没装apr和apr-util。51Testing软件测试网Ghvc6_

t!Xo5L%rY1N"`0从http://labs.mop.com/apache-mirror//apr/下载apr-1.4.6.tar.gz 和apr-util-1.4.1.tar.gz,解压后安装。注意必须先装apr再装apr-util,并且在configure apr-util时需要指定apr的路径,如下所示:51Testing软件测试网3h r'SxR/ye Z
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config
WZ*F~ J+G0apr和apr-util装好后,安装apache,configure时仍提示刚才的错误,手工指定apr和apr-util的路径,如下:51Testing软件测试网(@$Jm o,X1D6l

IX O.q@j Q+f?0 ./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
T(|2tk*@^J"R N0这次不再提示错误,接下来执行make和make install,安装成功。
6C-X:H-qX1M0
5Z3h ^8HH,v i0启动apache,提示51Testing软件测试网.t x+w F:`&UG
[Tue Sep 04 18:50:51.918437 2012] [core:warn] [pid 37294:tid 674238720] (2)No such file or directory: AH00075: Failed to enable the 'httpready' Accept Filter
/R I \T_~&c`9Zr0解决办法:
)BBK#FY.f6?0kldload accf_http

TAG: Apache apache

 

评分:0

我来说两句

Open Toolbar