zidong 发表于 2013-3-14 09:16:04

Linux下编译安装Apache2.4.3

解压缩tar zxvf httpd-2.4.3.tar.gz
编译安装
cd httpd-2.4.3
./configure
提示如下错误信息
configure: error: APR not found.Please read the documentation.
解压缩,安装APR1.4.5
tar zxvf apr-1.4.5.tar.gz
cd apr-1.4.5
./configure
make
make install
再次编译
cd ..
cd httpd-2.4.3
./configure
提示如下错误信息
configure: error: APR-util not found.Please read the documentation.
解压缩,安装APR-util
tar zxvf apr-util-1.4.1.tar.gz
cd apr-util-1.4.1
./configure
提示需要指定--with-apr参数
configure: error: APR could not be located. Please use the --with-apr option.
指定参数编译
./configure --with-apr=/usr/local/apr
make
make install
再次编译apache,成功
cd ..
cd httpd-2.4.3
./configure
make
make install

以下是配置虚拟主机部分的报错信息
错误信息:AH00548: NameVirtualHost has no effect and will be removed in the next release
意思很明显NameVirtualHost 已经无效,所以配置虚拟主机时不需要设置NameVirtualHost


coverl 发表于 2013-3-17 17:04:48

漏洞与补丁齐飞,蓝屏共死机一色!

jmton 发表于 2013-5-16 09:07:32

爱她,就请为她做无痛人流手术!

q789321 发表于 2013-5-17 16:49:03

sqtsqt 发表于 2013-5-19 05:43:58

男人靠的住,母猪能上树!

crespo09 发表于 2013-5-20 13:50:53

下雨了,别忘了打伞,湿身是小,淋病就麻烦啦*^_^*

hujh20 发表于 2013-5-21 21:45:32

只要不下流,我们就是主流!
页: [1]
查看完整版本: Linux下编译安装Apache2.4.3