Zend Server Best Practices > Troubleshooting > Log File Permissions

Log File Permissions

When the message "Log file /usr/local/zend/var/log/error.log does not exist or missing read permissions" appears it means that Zend Server does not have permissions to read the log file, or, the file does not exist. If the file does exist, you will need to provide the 'zend' user permissions to access the directory containing the file, and read the file itself.

 

 

Instructions on how to complete a procedure

To enable Zend Server to read error logs:

  1. Open a terminal and switch to root using "su" or "sudo -s".

  2. Run the following commands depending on the scenario:

    Enterprise Linux 5/6 with Apache

    chmod o+x /var/log/httpd

    Enterprise Linux 5/6 / Debian / Ubuntu with Nginx

    chmod o+r /var/log/nginx/{access,error}.log

    Debian / Ubuntu with Apache2

    chmod o+x /var/log/apache2

    chmod o+r /var/log/apache2/{access,error}.log

    SLES

    chmod o+x /var/log/apache2

If this does not work, please refer to the Zend Support Center, at: http://www.zend.com/en/support-center

 

Read Also

  Working with Logs    
  Troubleshooting