• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Statistics process deletes statistics of the previous month

Marco Cristofanilli

Basic Pleskian
When statistics process runs, it deletes the statistics data of the previous month.

Through strace I saw the following commands:

lstat("/var/www/vhosts/domain.com/statistics/webstat/2009-03"
open("/var/www/vhosts/domain.com/statistics/webstat/2009-03"
chdir("/var/www/vhosts/domain.com/statistics/webstat/2009-03") = 0
lstat("awstats.domain.com-http.html"
unlink("awstats.domain.com-http.html")
lstat("index.html"
unlink("index.html")
rmdir("/var/www/vhosts/domain.com/statistics/webstat/2009-03")
lstat("/var/www/vhosts/domain.com/statistics/webstat/2009-04"
unlink("/var/www/vhosts/domain.com/statistics/webstat/current")
symlink("2009-04", "/var/www/vhosts/domain.com/statistics/webstat/current")


The previous data directory is deleted in:
rmdir("/var/www/vhosts/domain.com/statistics/webstat/2009-03") = 0


Why?
 
Back
Top