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 来访问了

  • 相关阅读:
    php中防盗链使用.htaccess
    使用Apache的.htaccess就可以防盗链
    左连接和右链接的区别?
    大量查询SQL语句 实例
    java项目打包
    java小项目
    哈夫曼树
    广义表
    树和森林的遍历
    根据前序中序,中序后序建立二叉树
  • 原文地址:https://www.cnblogs.com/yangxiaocheng/p/4250905.html
Copyright © 2011-2022 走看看