2008年9月26日星期五

[fw-core] Encountering problems with Zend_Cache_Backend_File

I recently moved to a new server and am experiencing problems with my previously-working zend framework application (So this is probably a server configuration problem, but I can't figure out what is wrong).

I have the following directories:
/application/variable/cache (where I put db metadata files)
/application/variable/logs (where I put profiler logging information)

Zend_log works fine to save data in the logs directory (the directory permissions are identical to those of cache).  However, I get permission denied errors when I attempt to use the cache for database metadata files. 

The error occurs in _fileGetContents of Zend_Cache_Backend_File when the file is attempted to be opened.  Zend is able to successfully create the file, however, the second to last line of the function is causing problems:

@chmod($file, $this->_options['cache_file_umask']);

If I comment out this line, Zend Cache works perfectly, creating all of the files and successfully reading from them.  It also works perfectly if cache_file_umask is changed to 0777.  But it doesn't work with the default setting of 0600, even though it worked fine on the old server.  Is there a server setting, or possible directory permissions problem that needs to be fixed?

Thanks for your help.


没有评论: