LInux——安装Apache
2014-11-07 13:59
239 查看
在安装Apache的httpd的时候经常会遇到:
configure: error: APR not found . Please read the documentation.
configure: error: APR-util not found . Please read the documentation.
configure: error: pcre-config for libpcre not found. PCRE is required and available
网上也有文章指导如何下载后安装这些依赖的文件,本文
将这些依赖的文件都打包在http://download.csdn.net/detail/kkdelta/4424852.
将下面所有文件都放在 /root/wkr目录
apr-1.4.6.tar.gz
apr-util-1.4.1.tar.gz
httpd-2.4.2.tar.gz
pcre-8.30.zip
1,安装APR:
tar -zxvf apr-1.4.6.tar.gz
cd apr-1.4.6
./configure
make
make install
2,安装APR-UTIL
#tar -zxvf apr-util-1.4.1.tar.gz
#cd apr-util-1.4.1
#./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
#make
#make install
3安装pcre
#unzip -o pcre-8.30.zip
#cd pcre-8.30
#./configure --prefix=/usr/local/pcre
#make
#make install
4安装Apache
tar -xzvf httpd-2.4.2.tar.gz
cd httpd-2.4.2
./configure --prefix=/usr/local/apache/ --with-apr=/usr/local/apr
--with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre
#make
#make install
5启动Apache
cd /usr/local/apache/bin
./apachectl start
如果需要新版本:
http://httpd.apache.org/download.cgi http://apr.apache.org/download.cgi http://sourceforge.net/projects/pcre/
configure: error: APR not found . Please read the documentation.
configure: error: APR-util not found . Please read the documentation.
configure: error: pcre-config for libpcre not found. PCRE is required and available
网上也有文章指导如何下载后安装这些依赖的文件,本文
将这些依赖的文件都打包在http://download.csdn.net/detail/kkdelta/4424852.
将下面所有文件都放在 /root/wkr目录
apr-1.4.6.tar.gz
apr-util-1.4.1.tar.gz
httpd-2.4.2.tar.gz
pcre-8.30.zip
1,安装APR:
tar -zxvf apr-1.4.6.tar.gz
cd apr-1.4.6
./configure
make
make install
2,安装APR-UTIL
#tar -zxvf apr-util-1.4.1.tar.gz
#cd apr-util-1.4.1
#./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
#make
#make install
3安装pcre
#unzip -o pcre-8.30.zip
#cd pcre-8.30
#./configure --prefix=/usr/local/pcre
#make
#make install
4安装Apache
tar -xzvf httpd-2.4.2.tar.gz
cd httpd-2.4.2
./configure --prefix=/usr/local/apache/ --with-apr=/usr/local/apr
--with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre
#make
#make install
5启动Apache
cd /usr/local/apache/bin
./apachectl start
如果需要新版本:
http://httpd.apache.org/download.cgi http://apr.apache.org/download.cgi http://sourceforge.net/projects/pcre/
相关文章推荐
- Linux+Apache+PHP+Mysql快速安装
- Linux下安装最新Apache2.0.52+php5+gd2+MySQLl
- 新版mysql+apache+php Linux安装指南
- wxzh001,进来看关于APACHE+PHP+MYSQL+SSL的LINUX下安装配置(转自奥索)
- apache安装linux下
- mysql+apache+php Linux安装指南
- 在 Linux 上安装Apache+ApacheJServ+JSP
- 新版mysql+apache+php Linux安装指南
- linux下Mysql+php5+apache安装手记
- linux Apache 安装笔记
- mysql+apache+php Linux安装指南
- linux下apache+resin安装文档
- Linux下Apache2.0简单安装、配置、测试过程
- linux下安装apache
- 最新版 linux Fedora 下apache2.2 +mysql5.1.5 +php5.12 +GD +mod_limitipconn... 安装指南
- MySQL+PHP+APACHE在linux下的安装
- 在linux下安装Apache 2、PHP5.0.0、Sybase ASE 12.5
- Linux 下Apache和Resin的安装
- Apache-+Php-+Mysql- 在 linux 下的安装
- 在 Linux 上安装Apache+ApacheJServ+JSP