[CentOS] Apache problem

Thu Jun 22 00:14:33 UTC 2006
Miskell, Craig <Craig.Miskell at agresearch.co.nz>

> I maintain 10 webservers which is used for add delivery using 
> PHP.sometimes 
> when the load is high my apache process suddenly dies & i 
> restart apache.
> 
> 
> i find the following errors in my /var/log/messages/
> 
> server1 kernel: audit(1150892521.827:18474474): avc: denied { 
> write } for 
> pid=28135 comm="httpd" name="php-mmcache" dev=sda7 ino=2146317 
> scontext=root:system_r:httpd_t 
> tcontext=system_u:object_r:var_t tclass=dir
> 
> i think the above one is something related to selinux.so i 
> disabled selinux 
> stopped iptables & disabled firewall.
> 
> /sbin/fixfiles restore
> 
> but still i get the above error message in my /var/log/messages
I would suggest that if you are still getting this message, then you
haven't disabled selinux properly.  Also, there should be no reason to
stop/disable the firewall to stop these messages - I strongly recommend
you re-enabled it ASAP.

Craig
=======================================================================
Attention: The information contained in this message and/or attachments
from AgResearch Limited is intended only for the persons or entities
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipients is prohibited by AgResearch
Limited. If you have received this message in error, please notify the
sender immediately.
=======================================================================