首页 > Web开发 > 详细

(原创)在ubuntu 14.04 中安装Apache2+modsecurity+awstats (新手教程)

时间:2015-01-26 19:07:39      阅读:331      评论:0      收藏:0      [点我收藏+]

最好都在root账户下安装,百度ubuntu14.04 root 就可以看到一片教程,写的很详细,很方便

安装Apache2

本次安装采用apt-get安装

apt-get install apache2

当最后面出现

* Starting web server apache2 AH00558: apache2: Could not reliably determine the server‘s fully qualified domain name, using 127.0.1.1. Set the ‘ServerName‘ directive globally to suppress this message

*
Processing triggers for libc-bin (2.19-0ubuntu6) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for ufw (0.34~rc-0ubuntu2) ...


说明安装成功,安装目录在/etc/apache2

安装modsecurity

输入

apt-get install libxml2 libxml2-dev libxml2-utils libaprutil1 libaprutil1-dev libapache2-modsecurity

这个应该都不会有错误的,我装了好多次了没发现在这一步有错误的

然后重启服务器

service apache2 reload

 

配置这个模块我就不说了

安装awstats

apt-get install awstats

配置awstats

cd /etc/apache2/sites-enabled/

ln -s /usr/share/doc/awstats/examples/apache.conf awstats.conf

sudo /etc/init.d/apache2 restart

 

 拷贝icon文件夹
cp -r /usr/share/awstats/icon /var/www/awstats-icon

然后就可以通过http://localhost/cgi-bin/awstats.pl 来访问了

 

(原创)在ubuntu 14.04 中安装Apache2+modsecurity+awstats (新手教程)

原文:http://www.cnblogs.com/yangxiaocheng/p/4250905.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!