installing apache httpd2.4.6

Install Apache Httpd 2.4.6

 

1. Prepare list

1.1 apr

      download apr1.4.8.tar.gz and then run:

      ./configure

       make & make install

      apr has installed

 

1.2 apr-util

      download apr-util-1.4.1.tar.gz and then run:

      ./configure --with-apr=..../apr

       make & make install

      notice! apr-util must have the same version with apr, liked apr.1.4.* and apr-util.1.4.*

pcre

 

1.3 pcre

     downlaod pcre from  http://www.pcre.org

     ./configure

     make & make install

 

2. Install httpd

     go into httpd-2.4.6

 

2.1  

     ./configure --prefix=youpath --with-pcre=.../pcre/ --with-apr=.../apr-1-config --with-apr=.../apr

                                                  --with-pcre=.../pcre/pcre-config (in CentOS 6.3  and ubuntu)

    On my ubuntu is:

    ./configure --prefix=/usr/local/apache --with-apr=/usr/local/apache/apr-1.4.8 --with-apr-util=/usr/local/apache/apr-util-1.4.1 --with-pcre=/usr/local/apache/pcre-8.21/pcre-config

 

2.2 On my ubuntu it can not run make & make install. You must input tow commands

      make

      make install

      if make errer:  pcre.h: No such file or directory,  you need

      apt-get install libpcre3-dev or yum install pcre-devel

 

3. You need read:

http://httpd.apache.org/docs/current/install.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值