(original) Install Apache2+modsecurity+awstats (beginner tutorial) in Ubuntu 14.04

Source: Internet
Author: User
Tags fully qualified domain name modsecurity

It is best to install under the root account, Baidu ubuntu14.04 root can see a tutorial, written in very detailed, very convenient

Installing Apache2

This installation uses Apt-get installation

Apt-get Install Apache2

When the last face appears

* Starting Web server Apache2 AH00558:apache2:Could not reliably determine the server ' s fully qualified domain name, USI Ng 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) ...


Description installation successful, installation directory in/etc/apache2

Installing modsecurity

Input

Apt-get install libxml2 libxml2-dev libxml2-utils libaprutil1 libaprutil1-Dev Libapache2-modsecurity

This should not be wrong, I loaded many times did not find in this step has the wrong

Then restart the server

Service Apache2 Reload

Configure this module I'm not going to say it.

Installing Awstats

Apt-get Install Awstats

Configure Awstats

cd/etc/apache2/sites-enabled/

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

sudo/etc/init.d/apache2restart

Copy icon folder
Cp-r/usr/share/awstats/icon/var/www/awstats-icon

And then you can access it through http://localhost/cgi-bin/awstats.pl.

(original) Install Apache2+modsecurity+awstats (beginner tutorial) in Ubuntu 14.04

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.