Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Zend Server for IBM i on any supported version of IBM i running Zend Server 9.x - 2019.0.x2020 or higher.

One simple way to rotate the php.log file is with a CL program set up to run in the IBM Job Scheduler. The source for the CL program could look like this:

No Format
PGM
DCL        VAR(&TIMESTAMP) TYPE(*CHAR) LEN(20)
DCL        VAR(&NEWNAME) TYPE(*CHAR) LEN(30)
RTVSYSVAL  SYSVAL(QDATETIME) RTNVAR(&TIMESTAMP)
CHGVAR     VAR(&NEWNAME) VALUE('php.log.' *CAT &TIMESTAMP)
RNM        OBJ('/usr/local/zendphp7zendphp74/var/log/php.log') +
             NEWOBJ(&NEWNAME)
ENDPGM

...

Warning
titleDelete old renamed files periodically.
Once in a while go to the /usr/local/zendphp7zendphp74/var/log directory and delete the old renamed files.  It is important to not let the directory fill up with too many old files, in case a Support Tool is needed.  Too many files can make the Support Tool archive too large to attach to a support ticket.

Previous versions:


Note
titleNote: For Zend Server 9-2019 customers

The location of the php.log file is /usr/local/zendphp7/var/log/php.log.  Please adjust the above CL source accordingly.


Note
titleNote: For Zend Server 6 - 8.x customers

The location of the php.log file is /usr/local/zendsvr6/var/log/php.log.  Please adjust the above CL source accordingly.

...