• 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.

Modify the hour of transfer usage and AWStats rotation.

SalvadorS

Regular Pleskian
Hello,

Plesk rotate everyday the stats of all the domains (I use awstats) the transfer usage of every domain, the total transfer of the server and then suspend the domains with "overquota".

In my server all of this is in the morning. I want to change the hour of this, I want to do it by night but I don´t know where I can modify the hour of this.

Any help?
 
Hello,

The daily stats are calculated by the DailyMaintainance/script.php:

- start "statistics" to count traffic, disc space, create Web stats pages and put result to psa.DomainsTraffic
- results processing: calculation of client traffic, comparison with Resource limits in Plesk, send notifications, suspending

The utilities are executed from root cron job:

~# cat /etc/cron.daily/50plesk-daily
...
# install_statistics
/usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php >/dev/null 2>&1
...
~#

Time when daily cron job is executed:

/etc/crontab
--->8---
# run-parts
57 * * * * root run-parts /etc/cron.hourly
4 0 * * * root run-parts /etc/cron.daily
28 2 * * 0 root run-parts /etc/cron.weekly
58 1 11 * * root run-parts /etc/cron.monthly
---8<---

So you can change cron task or create your own in order to adjust time to your needs.
 
Hello,

There is something wrong with cron.daily.

I modify this cron. Now starts 12 hours before. Before, it started at 06AM now starts at 18pm. But the awstats.pl, the log rotate and the transfer rotate still works at the same hour than before, in the morning, between 12 and 14pm:

~# cat /etc/crontab
(...)

# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
0 18 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )

Any ideas?
 
Hello,

Can anybody help me? I don´t underestand why the awstats.pl is running at the same hour when I set the cron 12 hours earlier.

Thanks a lot.
 
Back
Top