Issue
We recommend enabling the system's log rotation mechanism to rotate Zend Server logs, especially on production and heavy traffic servers. The procedure is described in the documentation - Log Rotation.
However, this requires disabling Zend Server's built-in log rotation - for all components. This can be a lengthy and error-prone task when done manually, especially when this needs to be done on several servers.
Environment
GNU / Linux
Zend Server 6.x, 7.x and 8.x
Resolution
Download the file attached at the bottom of this page and run it on the server, providing the API key name and hash as parameters. A console example for this:
$ sudo ./disable_ZS_log_rotation.sh \
admin \
3e59307a7d5e312f82317adb0871c05a87ab66c665b15fec13d11bbce1c3a99b
$ sudo ./disable_ZS_log_rotation.sh admin 3e59307a7d5e312f82317adb0871c05a87ab66c665b15fec13d11bbce1c3a99b
Details
Internally the script uses the zs-manage command line utility.
To obtain the WebAPI key needed for this script, open your browser at
http://your.server:10081/ZendServer/ApiKeys/
and use one of the Administrator level keys (usually 'admin').
disable_ZS_log_rotation.tgz