Install and configure the website traffic analysis tool awstats In debian-linux (important, my configuration)
Source: Internet
Author: User
In debian-linux, install and configure the website traffic analysis tool awstats (important, my configuration)-Linux Enterprise Application-Linux server application information. For more information, see the following. Step 1: apt-get install awstats;
Step 2: Create the directory mkdir-p/usr/local/awstats/wwwroot/cgi-bin;
Step 4: cd/usr/local/awstats to check what is in the folder? If you still have a directory named samples, copy all the files in the samples folder to/usr/local/awstats. If it is not copied to this directory, you will be reminded to copy it later.
Step 5: gzip-d awstats.model.conf.gz in the/usr/local/awstats directory;
Step 6: cp awstats. model. conf wwwroot/cgi-bin;
Step 7: cd/usr/local/awstats/wwwroot/cgi-bin; ln-s/usr/lib/cgi-bin/awstats. pl.
Step 8: cd/usr/local/awstats ;. /awstats_config.pl, the program will ask you some questions, the location of the apache server configuration file, it will add several lines of "/usr/local/awstats/wwwroot/" information to your configuration file. Next, you will be asked about the name or host name of your website. If you enter fuyatao. The system will ask you if you want to create a new configuration file in the/etc/awstats directory. The configuration file name is awstats. www. lua. ccc. conf.
Step 9: Go to the/etc/awstats/directory to edit the configuration file. Note that there are three configuration files: awstats. conf and awstats. conf. local. The awstats must be modified. www. lua. ccc. conf. In fact, few changes are required. One is sitedomain, and the other is the location of logfile. You can fill in the location where your website log file is located. For example:/var/log/apache2/access. log, the other is logformat. There are four types of logs. The default value is 1 depending on the Web server.
Step 10: restart the apache2 web server. Then/usr/local/awstats/wwwroot/cgi-bin/awstats. pl-update-config = www. lua. ccc. Should it work properly? If an error occurs, a message is displayed, indicating that the location of the log file is incorrect. If the log format is incorrect, a change to awstats is returned. www. lua. ccc. conf. Then run/usr/local/awstats/wwwroot/cgi-bin/awstats. pl-update-config = www. lua. ccc.
Step 2: Let's take a look at the analysis results? Http: // domainname/cgi-bin/awstats. pl? Config = www. lua. ccc? Good, right? The Chinese interface is pretty and comprehensive in analysis. Run the domainname on the local machine, which can be localhost and the remote IP address or domain name.
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