Symptoms
-
Statistics is not calculated by the daily webstat task. Errors similar to the following are found in
%plesk_dir%adminlogsphp_error.log
:PLESK_INFO: The system cannot find the file specified. (Error code 2)
at RegQueryValueEx valueName=WebalizerPath - Webalizer is not installed, as can be seen in Tools & Settings > Server Components.
-
WebalizerPath does not exist as a registry property in
HKLM:SOFTWAREWOW6432NodePLESKPSA ConfigConfig
:Checking via PowerShell
PS Get-ItemProperty ‘HKLM:SOFTWAREWOW6432NodePLESKPSA ConfigConfig’ WebalizerPath
Get-ItemProperty : Property WebalizerPath does not exist at path HKEY_LOCAL_MACHINESOFTWAREWOW6432NodePLESKPSA
ConfigConfig.
At line:1 char:1
+ Get-ItemProperty ‘HKLM:SOFTWAREWOW6432NodePLESKPSA ConfigConfig …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (WebalizerPath:String) [Get-ItemProperty], PSArgumentException
+ FullyQualifiedErrorId : System.Management.Automation.PSArgumentException,Microsoft.PowerShell.Commands.GetItemPr
opertyCommand
Cause
Webalizer remains as the web statistics engine in a website configuration even after removal. It is a known Plesk bug with ID PPPM-9887, which is planned to be fixed in one of the future product updates.
Resolution
Force configure all domains to use AWStats:
-
Run PowerShell as Administrator and execute the following query:
PS plesk db -Ne”select name from domains where htype=’vrt_hst'” | % { if ($_) { plesk bin site -u $_ -webstat awstats } }
-
Wait for the daily job to execute again or use the instructions from one of the following articles: