同事安装apache报错error: APR not found. Please read the documentationapache版本 httpd-2.4.10.tar.gz解决方法如下:wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gztar fxz apr-1.4.5.tar.gz cd ap...

同事安装apache报错error: APR not found. Please read the documentation
apache版本 httpd-2.4.10.tar.gz
解决方法如下:
wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz
tar fxz apr-1.4.5.tar.gz
cd apr-1.4.5
./configure --prefix=/usr/local/apr
make && make install
wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz
tar fxz apr-util-1.3.12.tar.gz
cd apr-util-1.3.12
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make && make install
wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip
unzip pcre-8.10.zip
cd pcre-8.10
./configure --prefix=/usr/local/pcre
make && make install
tar fxz httpd-2.4.10.tar.gz
cd httpd-2.4.10
./configure --prefix=/usr/local/apache --enable-rewrite --enable-so --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre
make && make install
/usr/local/apache/bin/apachectl start 启动apche
查看80端口是否打开
在地址栏输入地址,看是否显示 it works!
本文出自 “青春邓勇” 博客,请务必保留此出处http://dengyong.blog.51cto.com/8409869/1576531
原文:http://dengyong.blog.51cto.com/8409869/1576531
本文标题为:源码安装apache


基础教程推荐
- RFO SIG之openEuler AWS AMI 制作详解 2022-12-28
- 为Win2003服务器打造铜墙铁壁的方法步骤 2022-09-01
- 通过StatefulSet部署有状态服务应用实现方式 2022-10-01
- P3 利用Vulnhub复现漏洞 - Apache SSI 远程命令执行漏洞 2023-09-10
- Docker容器操作方法详解 2022-11-13
- Apache CarbonData 1.0.0发布及其新特性介绍 2023-09-11
- windows环境下apache-apollo服务器搭建 2023-09-10
- Centos7 nginx的安装以及开机自启动的设置 2023-09-22
- Apache Kafka 2.5 稳定版发布,新特性抢先看 2023-09-11
- Centos 安装Django2.1 2023-09-24