Details
-
Task
-
Resolution: Fixed
-
None
-
High
-
PHP error_log location moved to translate5 installation root folder /data/logs/ directory, with logs rotation enabled, if needed elsewhere overwrite the location in installation.ini
-
PHP error_log moved to translate5 installation root folder /data/logs/ directory, with logs rotation enabled, if needed elsewhere overwrite the location in installation.ini
-
Empty show more show less
Description
problem
Currently the location of php.log file is either set by apache or by php.ini to default values.
proposed solution
We should have that in the area of the translate5 instance under data.
There fore we should set in application.ini:
phpSettings.error_log = APPLICATION_DATA "/logs/php.log"
This is not tested but should work and set the php.log file correctly.
Also log rotation should be setup. Invoked by our daily cron job by event binding - which must be checked after merging in the across hotfolder feature due refctoring in that area there.
A log rotation lib is already included via composer (cesargb/php-log-rotation) and should be configured on data/logs/php.log file