[CentOS] Apache problem

Thu Jun 22 11:40:14 UTC 2006
Johnny Hughes <mailing-lists at hughesjr.com>

On Thu, 2006-06-22 at 12:14 +1200, Miskell, Craig wrote:
> > 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.

That would be to edit the file /etc/sysconfig/selinux and to set this:

SELINUX=disabled

Then ... reboot

>   Also, there should be no reason to
> stop/disable the firewall to stop these messages - I strongly recommend
> you re-enabled it ASAP.

Good idea :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.centos.org/pipermail/centos/attachments/20060622/2b9a70ea/attachment-0005.sig>