Symptoms
-
AWStats is not installed on the server;
-
access_log.webstat
persists in the directory for the domainexample.com
:# ls -l /var/www/vhosts/example.com/logs/access_log.webstat
-rw——- 2 root root 197718 Apr 3 13:50 /var/www/vhosts/example.com/logs/access_log.webstat
Cause
This is Plesk bug with ID PPPM-4718 which was fixed in Plesk Obsidian.
Resolution
Upgrade to the newest Plesk version:Â Upgrade Guide to Plesk Obsidian
Workaround
Install web statistics tool
-
Connect to the server via SSH.
-
Install AWStats:
# plesk installer –select-release-current –install-component awstats
-
Execute the following in order to rotate
access_log.webstat
for domainexample.com
:# plesk sbin statistics –calculate-one –domain-name=example.com
or execute the following in order to rotate
access_log.webstat
for all domains:# plesk sbin statistics –calculate-all
Disabling *.webstat files processing
Warning: This will effectively disable *.webstat files processing, but the files would still appear.
-
Connect to the server via SSH.
-
Execute the command below to disable
*.webstat
files processing:
On Debian-based:# echo -e ‘#!/bin/bashnecho’ > /usr/lib/plesk-9.0/logresolvemerge
On RHEL-based:
# echo -e ‘#!/bin/bashnecho’ > /usr/lib64/plesk-9.0/logresolvemerge
Warning: the utility is restored by Plesk upgrade or update installation. Apply the following steps for the script execution after each Plesk update:
-
Go to Tools & Settings > Even Manager > Add Event Handler.
-
Specify the following fields:
-
Event: Update installed
-
Priority: normal (50)
-
User: root
-
Command:
echo -e '#!/bin/bashnecho' > /usr/lib64/plesk-9.0/logresolvemerge
-