首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

Linux上LAMP(Apache+PHP+MySql)环境配置

2013-02-27 
Linux下LAMP(Apache+PHP+MySql)环境配置configure: error: Cannot use an external APR with the bundled

Linux下LAMP(Apache+PHP+MySql)环境配置

configure: error: Cannot use an external APR with the bundled APR-util
根据错误信息进行解决
安装apr和apr-util
http://apr.apache.org上面有这些源码包自己编译安装

tar xzvf apr-1.2.9.tar.gz
cd apr-1.2.9
./configure --prefix=/usr/local/apr?
make
make install

tar xzvf apr-util-1.2.8.tar.gz
cd apr-util-1.2.8
./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 --enable-rewrite --enable-deflate --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-mpm=worker
make?
make install
安装将不再出错

热点排行