AWSTATS7.4 installation and configuration under Windows 10 64 bit to support log analysis of Apache 2.4

让其支持多个网站的统计

1. The installation and configuration of awstats7.4 under Windows 10 64 bit to support the log analysis of Apache 2.4;

2. Install Perl, open: https://www.perl.org/, as shown in Figure 1, under Windows, it is divided into two versions: Strawberry Perl and ActiveState Perl, select ActiveState Perl here;

在Windows下分为Strawberry Perl与ActiveState Perl两个版本,在此选择ActiveState Perl
There are two versions of Strawberry Perl and ActiveState Perl under Windows, select ActiveState Perl here

3. Open: http://www.activestate.com/activeperl/downloads, as shown in Figure 2, download the 64-bit version;

下载64位版本
Download the 64-bit version

4. Install perl; prompt error: As shown in Figure 3, the installation package cannot be opened. Please contact the application vendor to confirm this is a valid Windows Installer package.

无法打开此安装程序包。请与应用程序供应商联系,以确认这是一个有效的Windows Installer 程序包
This installer package cannot be opened. Please contact the application vendor to confirm this is a valid Windows Installer package

5. Download the 64-bit version of 5.22.0.2200, as shown in Figure 4, the name is: ActivePerl- 5.22.0.2200-mswin32-x64-299195.msi, no more errors are prompted.

下载5.22.0.2200的64位版本
Download the 64-bit version of 5.22.0.2200

6. During the installation process, an error is reported: The selected directory contains an incompatible version of active perl, please choose a different installation location!
The selected directory contains versions that are not compatible with ActivePerl, please choose a different installation location! Uninstall first, then reinstall and install;

5

6

7

选定目录包含与ActivePerl不兼容的版本,请选择不同的安装位置!
The selected directory contains versions that are not compatible with ActivePerl, please choose a different installation location!

9

10

11

7. Run in cmd.exe: perl -v, run normally;

在cmd.exe中运行:perl -v,运行正常;
Run in cmd.exe: perl -v, it runs normally;

8. Open: http://www.awstats.org/ , download awstats-7.4, install awstats, copy awstats-7.4 to e:\wwwroot\awstats-7.4;

9. Run: E:\wwwroot\awstats-7.4\tools>perl awstats_configure.pl

运行:E:\wwwroot\awstats-7.4\tools>perl awstats_configure.pl
Run: e:\wwwroot\awstats-7.4\tools>perl awstats_configure.pl

14

15

添加虚拟主机kcuc.ygt.cm
Add virtual host kcuc.ygt.cm

10. Modification: C:/apache24/conf/httpd.conf

addhandler cgi-script .cgi
AddHandler CGI-Script .pl

#
# directives to allow use of awstats as a CGI
#
alias /awstatcclasses “e:/wwwroot/awstats-7.4/wwwroot/classes/”
alias /awstatscss “e:/wwwroot/awstats-7.4/wwwroot/css/”
alias /awstatsicons “e:/wwwroot/awstats-7.4/wwwroot/icon/”
scriptalias /awstats/ “e:/wwwroot/awstats-7.4/wwwroot/cgi-bin/”

#
# this is to permit url access to scripts/files in awstats directory.
#

<directory “e:/wwwroot/awstats-7.4/wwwroot”>

Options FollowSymlinks ExecCGI
AllowOverride None
order allow, deny

Allow from all

</directory>

修改:C:/Apache24/conf/httpd.conf
Modify: c:/apache24/conf/httpd.conf
修改:C:/Apache24/conf/httpd.conf,修改为绝对路径
Modify: c:/apache24/conf/httpd.conf, modify to absolute path

11. Modification: E:\wwwroot\awstats-7.4\wwwroot\cgi-bin\awstats.kcuc.ygt.cm.conf

logfile=”c:/apache24/logs/kcuc.ygt.cm-access_log”

sitedomain=”kcuc.ygt.cm”

lang=”cn”

allowToUpdateStatsFromBrowser=1 //Settings can run the update process from your browser

12. Modification: E:\wwwroot\awstats-7.4\wwwroot\cgi-bin\awstats.pl

#!C:/Perl64/bin/Perl.exe

#!C:/Perl64/bin/perl.exe
#!C:/Perl64/bin/Perl.exe

13. Run: perl awstats.pl -config=kcuc.ygt.cm -update, as shown in Figure 17

运行:perl awstats.pl -config=kcuc.ygt.cm -update
Run: perl awstats.pl -config=kcuc.ygt.cm -update

14. Open: http://localhost/awstats/awstats.pl?config=kcuc.ygt.cm , as shown in the figure

打开:http://localhost/awstats/awstats.pl?config=kcuc.ygt.cm
Open: http://localhost/awstats/awstats.pl?config=kcuc.ygt.cm

15. Let it support the statistics of multiple websites, copy: e:\wwwroot\awstats-7.4\wwwroot\cgi-bin\awstats.kcuc.ygt.cm.conf For: E:\wwwroot\awstats-7.4\wwwroot\cgi-bin\awstats.www.ygt.cm.conf
logfile=”c:/apache24/logs/www.ygt.cm-access_log”

sitedomain=”www.ygt.cm”

让其支持多个网站的统计
Let it support statistics from multiple websites

 

 

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.