On Sun, Oct 10, 2010 at 5:28 PM, Graham Dumpleton
<[email protected]> wrote:
> Temporarily disable php module in apache to verify whether is mod_wsgi
> or conflict with php. Also ensure selinux disabled if on Linux.

One quick note if under Linux and suspect SELinux interactions....

There have been cases where the SELinux (advanced security enhancements)
can cause Apache to segfault - on purpose.  But SELinux has a lot of benefits
too, so rather than just flat-out disable it, you should first put it
into so-called
"permissive" mode.

First, see if SELinux is actually running. As the root user,

   # sestatus

and see if you get output that says both

   SELinux status: enabled
   Current mode:    enforcing

If you don't see that, then SELinux is not your problem.

But if it is enabled AND enforcing, then you can temporarily put it into
permissive mode by using:

   # setenforce 0

While in permissive mode, the SELinux kernel will continue auditing actions
that it would normally have taken, but will not actually prevent any attempted
accesses (and thereby will not cause and seg faults).  Those audit
messages, if they occur, will typically show up in your syslog output
(under /var/log/messages), though that may depend on which Linux
distro you're using.

If putting it in permissive mode suddenly fixes your problem, then please let
us know and we can try to figure out what's going on and if there's an easier
and better solution than having to completely disable SELinux.

If you still see crashes even when in permissive mode, then SELinux was
not your problem (or at least it's not the only problem).

Use "setenforce 1" to re-enable enforcing mode.  You can go back and
forth between enforcing and permissive modes at will.  However once
you disable SELinux completely, it is much more complicated and
involved to correctly re-enable it again.

-- 
Deron Meranda
http://deron.meranda.us/

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to