30.07.2012 Views

Reference Guide

Reference Guide

Reference Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Zend Server <strong>Reference</strong> Manual<br />

Changing the Component's Log Directory<br />

This issue is intended for advanced users who want to change the directory for storing Zend component<br />

Log files.<br />

By default, component logs are written to the directory specified in the directive zend.log_dir in the<br />

ZendGlobalDirectives.ini file located in /etc/conf.d/ZendGlobalDirectives.ini .<br />

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

458<br />

monitor.log<br />

monitor_node.log<br />

monitor_zdo.log<br />

page_cache.log<br />

Linux<br />

To Change the Log directory in Linux:<br />

1. Create the new logs directory with write permissions in order to be able to write the logs<br />

in the new directory.<br />

2. The new directory has to be owned by the Apache NOBODY user profile and belong to<br />

the file system group zend. To move the directory to the zend group run the following<br />

command as user root:<br />

chown -r [Apache-user]:zend [new directory]<br />

3. Open /etc/conf.d/ZendGglobalDdirectives.ini and change the value of<br />

zend.log_dir to the new log directory<br />

4. Run zendctl.sh stop and zendctl.sh start to apply the changes, this script is located in<br />

/bin/<br />

Now the log files for the Zend Page Cache and Zend Monitor components will be written to the new<br />

location. This means that some log files such as Apache and PHP, will still be written to the default<br />

directory (/var/log)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!