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
/apache2
restart
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