Linux下安装apache 提示APR not found 解决方法

 

Linux下安装apache 提示APR not found 解决方法
推荐方法,注意版本号。
1.下载apr安装包:
http://labs.mop.com/apache-mirror//apr/apr-1.4.6.tar.gz
tar zxvf  apr-1.4.6.tar.gz
cd apr-1.4.6
./configure --prefix=/usr/local/apr
make && make install
2.下载apr-util安装包:
http://labs.mop.com/apache-mirror//apr/apr-util-1.4.1.tar.gz
tar zxvf apr-util-1.4.1.tar.gz
cd apr-util-1.4.1
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config
3.下载pcre安装包:
http://sourceforge.net/projects/pcre/files/pcre/8.30/pcre-8.30.tar.gz/download
tar zxvf pcre-8.30.tar.gz
cd pcre-8.30
./configure --prefix=/usr/local/pcre
make && make install
4.安装httpd包:
http://httpd.apache.org/download.cgi#apache24
tar zxvf httpd-2.4.3.tar.gz
cd httpd-2.4.3
./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre/bin/pcre-config
make && make install
安装完成。

"Linux下配置apache所需文件包.tar.gz"  (包含所有所需文件及安装方法)
        下载地址:  http://vdisk.weibo.com/s/fBS4h

make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs  
解决办法是: http://www.neverkill.com/forum.php?mod=viewthread&tid=22205

httpd: Could not reliably determine the server's fully qualified domain name
   解决办法是: http://www.neverkill.com/forum.php?mod=viewthread&tid=22207

(13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
  解决办法是 : http://www.neverkill.com/forum.php?mod=viewthread&tid=22208

posted @ 2013-01-25 21:09  Aseoe  Views(698)  Comments(0Edit  收藏  举报