Changing the Component's Log Directory
This issue is intended for advanced users who want to change the directory for storing Zend component Log files.
By default, component logs are written to the directory specified in the directive zend.log_dir in the ZendGlobalDirectives.ini file located in <install_path>/etc/ZendGlobalDirectives.ini .
If you change the path, the following components will write their logs to the new location:
- monitor.log
- monitor_node.log
- monitor_zdo.log
- page_cache.log
Linux
|
To Change the Log directory in Linux:
chown -r [Apache-user]:zend [new directory]
|
Now the log files for the Zend Page Cache and Zend Monitor components will be written to the new location. This means that some log files such as Apache and PHP, will still be written to the default directory (<install_path>/var/log) |
Windows
|
To Change the Log directory in Windows:
|
Now the log files for the Zend Page Cache and Zend Monitor components will be written to the new location. This means that some log files such as Apache and PHP, will still be written to the default directory (<install_path>\logs). Note: The new directory must have the same permissions as the original logs directory. |
IBM i
|
To Change the Log directory in IBM i :
|
Now the log files for the Zend Page Cache and Zend Monitor components will be written to the new location. This means that some log files such as Apache and PHP, will still be written to the default directory (/usr/local/zendphp74/etc/var/log). |