zoukankan      html  css  js  c++  java
  • (原创)在ubuntu 14.04 中安装Apache2+modsecurity+awstats (新手教程)

    最好都在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 来访问了

  • 相关阅读:
    python之json&pickle
    python之装饰器
    软件测试基础
    软件测试分类
    python3文件的读写操作
    python3对excel文件读写操作
    Java集合整理
    mybatis一对多关系的关联查询
    用xftp从win7系统传输一些必要的文件到Linux
    Spring和Mybatis的整合
  • 原文地址:https://www.cnblogs.com/yangxiaocheng/p/4250905.html
Copyright © 2011-2022 走看看