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

  • 相关阅读:
    移动互联网整理笔记(这课内容太多了。。。)
    11.19
    hihoCoder#1879 : Rikka with Triangles (计算几何)
    hdu 4758 (AC自动机)
    hdu 4511 (AC自动机)
    2018 icpc 青岛
    hdu 6219 Empty Convex Polygons (凸包)
    2019 ccpc 秦皇岛
    2018 icpc 徐州
    hdu6599 I Love Palindrome String
  • 原文地址:https://www.cnblogs.com/yangxiaocheng/p/4250905.html
Copyright © 2011-2022 走看看