ftsr 发表于 2012-10-31 09:24:23

centos5.4下 apache2.4.3 安装笔记

去官方下载最新版 的apache 2.43 ,地址我就不给了,自己找去哦,不难的

# tar zxvf httpd-2.4.2.tar.gz
# cd httpd-2.4.2

# ./configure prefix=/usr/local/apache-2.4.3--enable-so --enable-rewrite --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/uar/local/pcre

最后面提示:
checking for APR... no
configure: error: APR not found.Please read the documentation.

下载安装
http://apr.apache.org/download.cgi=>http://mirror.bjtu.edu.cn/apache//apr/apr-1.4.6.tar.gz

tar zxvf apr-1.4.6.tar.gz
cd apr-1.4.6
./configure
make && make install


cd ../

继续安装apache

最后面提示:

checking for APR-util... no
configure: error: APR-util not found.Please read the documentation.

下载安装
http://apr.apache.org/download.cgi=>http://mirror.bjtu.edu.cn/apache//apr/apr-util-1.4.1.tar.gz
(http://mirror.bjtu.edu.cn/apache//apr/apr-iconv-1.2.1.tar.gz)

tar zxvf apr-util-1.4.1.tar.gz
cd apr-util-1.4.1
./configure --with-apr=/usr/local/apr
make && make install
cd ../

继续安装apache

最后面提示:

configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/


下载安装 pcrehttp://pcre.org==>ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.gz

tar zxvf pcre-8.30.tar.gz
cd pcre-8.30
./configure --with-apr=/usr/local/apr
make && make install
cd ../


再次安装apache
./configure prefix=/usr/local/apache-2.4.3--enable-so --enable-rewrite --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/uar/local/pcre




make && make install

#启动
#/usr/local/httpd-apache/bin/apachectl start
# netstat -utl

#然后打开浏览器,输入“http://localhost”
#出现“It Works!”
安装成功~~!

沈阳格力专卖店 发表于 2013-3-14 00:16:33

我抢、我抢、我抢沙发~

alonli 发表于 2013-5-16 01:44:20

帮帮顶顶!!

坏气十足 发表于 2013-5-17 13:00:10

下雨了,别忘了打伞,湿身是小,淋病就麻烦啦*^_^*

wuliuwang 发表于 2013-5-18 18:52:09

所有的男人生来平等,结婚的除外。

gbless 发表于 2013-5-20 06:15:20

只有假货是真的,别的都是假的!

plantegg 发表于 2013-5-21 13:55:14

天塌下来你顶着,我垫着!
页: [1]
查看完整版本: centos5.4下 apache2.4.3 安装笔记