- Plesk 12.5 for Linux
- Plesk 11.x for Windows
- Plesk 11.x for Linux
- Plesk 12.0 for Linux
How to change log rotation settings for all domains at once?
It can be performed using Plesk command line utility or Plesk API-XML request:
Change log rotation settings using
domaincommand line utility
For Linux The following command changes log rotation setting for all domains:
# for dom_name in $(mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -sNe "select name from domains;"); do /usr/local/psa/bin/domain -u $dom_name -log-bytime weekly; done
This command is switching log rotation condition to
By timeand sets log rotation period as
1 week. Get an additional information about the
plesk bin domainutility options by the following command:
# plesk bin domain --help
For Windows Please use the attched file in order to change log rotation setting for all or several websites.
.batfile, run it as Administrator and follow the instructions inside.
Change log rotation settings using Plesk API request . Send the API request to Plesk using the Send API request website. In the following example, XML API request changes log rotation setting for all domains of
This API request switch log rotation condition to
and sets log rotation period as