51Testing软件测试论坛

标题: 重装Apatch过程中问题及解决方案 [打印本页]

作者: bowlder    时间: 2008-9-2 10:24
标题: 重装Apatch过程中问题及解决方案
当系统中已经安装过老版本的Apatch,需要删掉重装,会碰到一些问题,我们需要解决掉才能安装新的Apatch.

(1) 卸载老版本的Apatch

-- 找到所有已经安装的httpd软件包
   rpm -qa | grep httpd
-- 删除这些软件包
   rpm -e --nodeps httpd-.....

(2) 安装新版本,在configure时会出现 error,APR with the bundled APR-utilq ,而中断安装
一般在第一次安装进一般不会遇到这种问题,在重新编译时会遇到该问题,以下是解决方法:

cd httpd-2.2.2

安装APR
cd srclib/apr

#./configure --prefix=/usr/local/apr
#make
#make install

安装APR-util
cd srclib/apr-util

#./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
#make
#make install

再安装apache
# ./configure --prefix=/usr/local/apache --enable-so --enable-mods-shared=all --enable-cgi --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/bin

# make
#make install





欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2