- 论坛徽章:
- 0
|
linux系统为redhat13.8,自带apache2.0.47版本,近日为了把apache升级至2.2版本,按照CU上的一篇文章进行安装失败,不知原因何在?
所用安装软件为
apr-1.2.9.tar.gz
apr-util-1.2.8.tar.gz
httpd-2.2.4.tar.gz
安装步骤:
1 . 强制卸载系统自带的apr0.9.4,apr-util-0.9.4,apache2.0.47
rpm -e --nodeps apr
rpm -e --nodeps apr-util
rpm -e --nodeps httpd
2. 首先安装apr-1.2.9
tar xvfz apr-1.2.9.tar.gz
cd apr-1.2.9
./configure --prefix=/usr/local/apr-httpd
make
make install
再安装apr-util-1.2.8
tar xvfz apr-util-1.2.8.tar.gz
cd apr-util-1.2.8
./configure --prefix=/usr/local/apr-util-httpd --with-usr/local/apr-httpd
make
make install
在这步完成后进行如下操作
rpm -qi apr-httpd 提示 package apr-httpd is not install
rpm -qi apr-util-httpd 提示 package apr-util-httpd is not install
搞不清楚什么原因,没理会,继续安装
3. 安装apache2.2.4
tar xvfz httpd-2.2.4.tar.gz
cd httpd-2.2.2
./configure --prefix=/usr/local/apache --enable-mods-shared=all --enable-module=most
--with-apr=/usr/local/apr-httpd --with-apr-util=/usr/local/apr-util-httpd --enable-so
make
make install
进行rpm -qi httpd 提示package apr-httpd is not install
cd /usr/local/apache/bin
/httpd -k start
提示:httpd:could not open configureration file local/httpd/conf/httpd.conf
no such fiel or directory
这里我莫名其妙,我是把apahce安装在/usr/local/apache中,为何运行httpd时却从/local/httpd中寻找httpd.conf文件.
有哪位大虾碰到过这种问题,请帮忙解答,在下先谢谢了. |
|