亲测apache

http://www.cnblogs.com/bluewelkin/p/3805107.html
里面是纠正了原文的一些小错误,即可正常安装
 
1、su 命令
2、安装apr-1.3.5.tar.gz
# tar zxvf apr-1.3.5.tar.gz
 
# cd apr-1.3.5
 
# ./configure
 
#make
 
#make install
3、
安装apr-util-1.3.7.tar.gz
# tar zxvf apr-util-1.3.7.tar.gz
 
# cd apr-util-1.3.7
 
# . /configure --with-apr=/usr/local/apr
. /configure --with-apr=/usr/local/apr(这个是修正之后的)
 
 
 
# make
 
# make install
4
安装httpd-2.2.11.tar.gz
# tar zxvf httpd-2.2.11.tar.gz
 
# ./configure --prefix=/usr/local/apache2 --enable-dav --enable-modules=so --enable-maintainer-mode --enable-rewrite --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr/bin/apu-1-config
 
【bash: ./configure: 没有那个文件或目录
 
--------------------------------------------------
 
解决方案: chmod a+x configure 修改一下这个文件的权限即可】
 
 
# make
 
# make install
 
 
 
启动Apache服务:
 
# /usr/local/apache2/bin/apachectl start
 
 
 
用浏览器查看http://localhost/,得到It works!
 
说明apache已经配置成功了。

httpd: Could not reliably determine the server's fully qualified domain name

---------------------------------------

解决方案:cd /usr/local/apache/conf

vi  httpd.conf

将里面的#ServerName www.example.comt:80注释去掉即可。

 


 
 、

posted @ 2014-06-30 22:01  kin2321  阅读(190)  评论(0编辑  收藏  举报