1. Install and configure AWstats7.4 on Windows 10 64-bit to support Apache 2.4 log analysis;
2. Install Perl. Open https://www.perl.org/ . As shown in Figure 1, there are two versions for Windows: Strawberry Perl and ActiveState Perl. Here, ActiveState Perl is selected;

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

4. Install Perl. An error prompts: As shown in Figure 3, this installation package could not be opened. Please contact the application vendor to confirm that 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, and the error no longer appears.

6. During installation, an error occurs: The selected dirctory contains an incompatible version of ActivePerl,Please choose a different installation location!
The selected directory contains an incompatible version of ActivePerl. Please choose a different installation location! Uninstall it first, then reinstall;







7. Run in cmd.exe: perl -v. It runs normally;

8. Open http://www.awstats.org/ , download awstats-7.4, install AWstats, and copy awstats-7.4 to E:\wwwroot\awstats-7.4;
9. Run: E:\wwwroot\awstats-7.4\tools>perl awstats_configure.pl




10. Modify: C:/Apache24/conf/httpd.conf
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
#
# Directives to allow use of AWStats as a CGI
#
Alias /awstatsclasses “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>


11. Modify: 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 //Set to allow running the update process from your browser
12. Modify: E:\wwwroot\awstats-7.4\wwwroot\cgi-bin\awstats.pl
#!C:/Perl64/bin/perl.exe

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

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

15. To enable it to support statistics for multiple websites, copy E:\wwwroot\awstats-7.4\wwwroot\cgi-bin\awstats.kcuc.ygt.cm.conf to: 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”

