Zend Server Best Practices > Troubleshooting > Linux: Changing the Component's Log Directory

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/conf.d/ZendGlobalDirectives.ini .

If you change the path, the following components will write their logs to the new location:

IBM i

 

 

Instructions on how to complete a procedure

To Change the Log directory in IBM i :

  1. Create the new logs directory with write permissions in order to be able to write the logs in the new directory.
    The new directory has to be owned by user profile QTMHHTTP

  2. Open /usr/local/zendsvr/etc/conf.d/global_directives.ini/ and change the value of zend.log_dir to the new log directory

  3. Run Stop and Start Apache from the Setup Menu to apply the changes.

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/zendsvr/etc/var/log).

 

Read Also

  Zend Server Best Practices    
  Troubleshooting