I am running a PHP/Mysql Zend Framework 1.5.2 application on CentOS.
When php/apache tries to open the application's log file for appending, the logging component Zend_Log throws an exception '"/var/log/webapp/interp_requests.test.log" cannot be opened with mode "a"'
Here's what's odd: The file, and its ownership, and its permissions, AFAIK are today exactly the same as what they were yesterday and it was working just fine. I.e.:
Code:
[david@interps2 webapp]$ ls -ld /var/log/webapp
drwxr-xr-x 2 apache apache 4096 Aug 1 09:12 /var/log/webapp
[david@interps2 webapp]$ ls -ld /var/log/webapp/*
-rw-r--r-- 1 apache apache 46759 Jul 31 17:45 /var/log/webapp/interp_requests.test.log
and I did not touch anything in the interim. My yum.log tells me some things were updated yesterday, maybe that's related to my issue. I have had problems in the past with selinux doing its job against my will, but
Code:
sudo grep -i selinux /var/log/messages
does not say anything about apache or httpd except this, from several days ago:
Code:
Jul 27 04:02:20 interps2 setroubleshoot: SELinux is preventing the /usr/sbin/httpd from using
potentially mislabeled files socket:[390995] (rpm_var_lib_t).
For complete SELinux messages. run sealert -l 6012850a-b9b1-4db6-a5b2-ee689f96dbfc
and I don't know whether that is relevant. Nonetheless, when I go
Code:
[root@interps2 log]# /usr/bin/sealert -l 6012850a-b9b1-4db6-a5b2-ee689f96dbfc
I get
Code:
failed to connect to server: 'NoneType' object has no attribute 'format'
So.... any ideas?
Gratefully,