1、下载apahce
    编译提示:
        configure: error: APR not found.  Please read the documentation.
    查看文档:
        位于apache发布包的INSTALL文档:     ![INSTALL]()
2、下载APR和APR-util最新版
     将它们解压到apachede目录下的srclib中的apr和apr-util目录中(一般需要自己手动创建)
3、 编译apache
       ./configure --with-included-apr /configure --prefix=/usr/local/apache2  --enable-so --enable-rewrite --enable-mime-magic --enable-mem-cache
         出现错误提示:configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
4、下载pcre,并编译安装
5、编译apache
       ./configure --prefix=/usr/local/apache2 --with-pcre=/usr/local/pcre
       这才成功
注意:对于linux 6.2,网站需要php-mbstring支持的,需要下载rpm包,名字是:php-mbstring-5.3.3-3.el6_1.3,依赖于php-common-5.3.3-3.el6_1.3
6、编译PHP
        ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs
 
                    
                     
                    
                 
                    
                 
 
         
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号