apache 2.4已经不自带apr库,需要独立安装才行:
复制代码代码如下:
wget http://labs.mop.com/apache-mirror/httpd/httpd-2.4.3.tar.gz
wget http://labs.mop.com/apache-mirror/apr/apr-1.4.6.tar.gz wget http://labs.mop.com/apache-mirror/apr/apr-util-1.4.1.tar.gz tar xzf httpd-2.4.3.tar.gz tar xzf apr-1.4.6.tar.gz tar xzf apr-util-1.4.1.tar.gz mv apr-1.4.6 httpd-2.4.3/srclib/apr mv apr-util-1.4.1 httpd-2.4.3/srclib/apr-util cd httpd-2.4.3 ./configure --with-included-apr --with-php --with-mysql --with-suse xec --disable-info --with-mpm=prefork --enable-so --enable-cgi --enable-rewrite --enable-ssl --enable-mime-magic --enable-unique-id --enable-mods-shared=all --enable-ssl=shared --enable-proxy --enable-proxy-connect --enable-proxy-ftp --enable-proxy-http #注意去除空格 make make install
注意:
验证apxs安装:
复制代码代码如下:
/usr/local/apache2/bin/apxs -c -i
cd /etc
cd /usr/sbin/
cd /var/log (责任编辑:IT) |