• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

AWStats Errors after Plesk 8.2 to 8.6 Upgrade

T

Tikkune

Guest
(1) Since upgrade to Plesk 8.6 from Plesk 8.2, AWStats that were writing to: 'awstats.domain.com.txt'

... are now writing to: 'awstats.www.domain.com.txt'

... when 'statistics.exe' is run.

I have lost connection to one year of data statistics that was written in statistics files without 'www'.

Since Plesk 8.6 ugrade, why is 'statistics' causing AWStats to write to log files with www.domain.com name now, even when nothing about domain Setup has changed?

How can I get 'statistics' and AWStats to write again to: 'awstats.domain.com.txt', without the 'www' prefix?

---

(2) When I attempt to look at stats: http://domain.com/plesk-stat/webstat/

... which would read 'index.html' in /webstat folder, now I get warning:

WARNING: LastLine parameter in history file is '20080806065120' so in future. May be you need to correct manually the line LastLine in some awstats*.domain.com.conf files.

And stats only show to the day of Plesk 8.6 upgrade, when AWStats started writing to new logs with 'www' in the name.

So I view new 'awstats.www.domain.com.html' file, which also gives this warning:

WARNING: LastLine parameter in history file is '20080809065719' so in future. May be you need to correct manually the line LastLine in some awstats*.www.domain.com.conf files.

---

Would someone advise to help correct these problems with AWStats since upgrade to Plesk 8.6? Thank you.
 
Is this the AWStats config file that can fix this problem with AWStats writing to different log files (adding 'www' to file names) since Plesk 8.6 upgrade?

If yes, could a developer please give advice about how to modify? Thank you.

SWsoft\Plesk\Additional\AWStats\tools : awstats_configure.pl

# Create awstats.conf file
# ------------------------
print "\n-----> Create config file '$configfile'\n";
if (-s $configfile) { print " Config file already exists. No overwrite possible on existing config files.\n"; }
else {
%ConfToChange=();
# TODO Ask path of log file to change LogFile parameter
if ($OS eq 'linux' || $OS eq "macosx") { $ConfToChange{'DirData'}="$AWSTATS_DIRDATA_PATH"; }
if ($OS eq 'windows') { $ConfToChange{'DirData'}='.'; }
if ($UseAlias) {
$ConfToChange{'DirCgi'}='/awstats';
$ConfToChange{'DirIcons'}='/awstatsicons';
}
$ConfToChange{'SiteDomain'}="$site";
my $sitewithoutwww=lc($site); $sitewithoutwww =~ s/^www\.//i;
$ConfToChange{'HostAliases'}="$sitewithoutwww www.$sitewithoutwww 127.0.0.1 localhost";
update_awstats_config("$modelfile","$configfile");
}

}
 
The issue could be resolved by either using Rollback method, or by using new files provided by Parallels.

--- New Files Method ---

http://forum.swsoft.com/showpost.php?p=211771&postcount=9

--- Rollback Method ---

(1) Restore/rollback to 'statistics.exe' from Plesk 8.2 revision

On our server, the Plesk 8.2 'statistics.exe' writes 'awstats.domain.com.txt' and 'index.html' (and other html reports) without inserting the 'www'. This allows us to continue accessing all 2 years of AWStats reports.

---

(2) Edit 'awstats.domain.com.conf' file to uncomment the line (remove the # sign):

#LoadPlugin="timezone +2"

... and adjust the '+2' number for your timezone. For example, we needed to use the number '-8' to adjust to our timezone. This setting works to syncronize the time fed by IIS to AWStats, and this affects the time recorded in the 'awstats.domain.com.txt' file. By adjusting this setting, restarting IIS, and waiting the number of hours adjusted by the offset you enter (if you enter a - negative number), the 'WARNING: LastLine...' message will be resolved when viewing HTML reports created from AWStats statistics.

Before you edit the file 'awstats.domain.com.conf', be sure to make a backup of the file! For Plesk 8.6, the file can found in the directory:

%plesk_dir%\Additional\AWStats\wwwroot\cgi-bin

Be careful to edit the 'awstats.domain.com.conf' file with an editor that does NOT destroy the basic structure of the file (adding 'returns' and 'linefeeds', etc.)
 
Statistics were working OK for a few days, using 'New Files' methody above, then...

HTML report files being created started having very strange names, for example:

awstats.awstats.ffgmdigysvdxdilccrob.domain.com.html

Each day, writing to new filenames, and destroying the integrity of statistics.

I have returned to Plesk 8.2 statistics.exe because Plesk 8.6 statistics .DLL and .EXE builds are not reliable.
 
How to use the rollback method

Can someone tell me how to go about performing the rollback method described above? I cannot seemt o find the steps necessary.
 
'Rollback' is simply to use the statistics.exe file from Plesk 8.2 revision. That is, you 'roll back' to a previous version of the statistics.exe file, which you could get perhaps from a backup?
 
Back
Top