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

  • 相关阅读:
    配置Podfile 一个工程内的多个Target
    iOS开发中的测试框架
    iOS 设置button文字过长而显示省略号的解决办法
    iOS界面的绘制和渲染
    iOS单元测试
    iOS消息转发机制
    对runtime的总结:让你会用Runtime
    Xcode的Refactor使用
    工厂设计模式
    iOS中的数据存储
  • 原文地址:https://www.cnblogs.com/yangxiaocheng/p/4250905.html
Copyright © 2011-2022 走看看