Linux .下Apache的安装

centos 5.8系统下安装Apache。

1、首先到官网下载Apache,即是HTTP Server,下载要安装的相应版本即可。

2、解压后,直接./configure 配置,会发现依赖apr、apr-util、pcre。

APR not found
APR-util not found

3、下载相应gz文件后,解压安装。

4、

#./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre/bin/pcre-config  【配置】
#make  【编译】
#make install 【安装】

 5、Apache安装完成后,启动服务,输入127.0.0.1,页面显示“it works“证明安装成功。

成长的乐趣,在于分享!
大龄程序员,一路走来,感慨颇多。闲暇时写写字,希望能给同行人一点帮助。
本文版权归作者growithus和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
原文地址:https://www.cnblogs.com/growithus/p/11012270.html