centos5.4下 apache2.4.3 安装笔记

去官方下载最新版 的apache 2.43 ,地址我就不给了,自己找去哦,不难的
 
tar zxvf httpd-2.4.2.tar.gz
cd httpd-2.4.2

 
[root@localhost 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/

 

 
下载安装 pcre   http://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

 
#启动
[root@localhost httpd-apache]# /usr/local/httpd-apache/bin/apachectl start
[root@localhost httpd-apache]#  netstat -utl

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

安装成功~~!

你可能感兴趣的:(apache,centos5.4,apache2.4.3)