首先需要安装apr和apr-util,其下载地址为
不然会出现
./configure --prefix=/usr/loca/apache --enable-so
便出现以下错误提示:
checking for APR-util... reconfig
configure: error: Cannot use an external APR with the bundled APR-util
然后
先安装第一个
tar -zxvf apr-1.2.7.tar.tar
./configure --prefix=/usr/local/apr
make
make install
接下来安装第二个
tar -zxvf apr-util-1.2.7.tar.tar
./configure --prefix=/usr/local/apr-unil --with-apr=/usr/local/apr
make
make install
好了,剩下重新安装apache了
./configure --prefix=/usr/local/apache --enable-so --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-unil
make
make install
安装完成后在修改/usr/local/apache/conf/httpd.conf 的user=nobody group=nobody
然后,运行/usr/local/apache/bin/apachectl start
如果出现libiconv.so.2找不到的问题,可以将/usr/local/lib/libiconv.so.2 cp 到/usr/lib/下
然后运行,ok。
其主页在/usr/local/apache/htdocs/index.html
阅读(2780) | 评论(0) | 转发(0) |