• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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