Try setting:

WSGIApplicationGroup %{GLOBAL}

For reasons why, see:

http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Python_Simplified_GIL_State_API
http://code.google.com/p/modwsgi/wiki/FrequentlyAskedQuestions#Apache_Process_Crashes

If stil, no joy, have a look at the page linked there about expat issues as 
that seems to be cropping up a bit lately. It may be necessary if it is the 
expect issue to rebuild Python and tell it not to use the system expat library 
but the namespace prefixed one bundled with Python.

Graham

On 26/09/2013, at 3:40 AM, [email protected] wrote:

> Hi, 
> 
> Am using mod_wsgi 3.4 from source compiled with ./configure 
> --with-python=/usr/local/ActivePython-2.7/bin/python
> 
> Apache is httpd-2.2.15-29.el6.centos.i686 on Centos 6.4
> 
> mod php loaded, but not mod python
> 
> Server version: Apache/2.2.15 (Unix)
> Server built:   Aug 13 2013 17:27:11
> Server's Module Magic Number: 20051115:25
> Server loaded:  APR 1.3.9, APR-Util 1.3.9
> Compiled using: APR 1.3.9, APR-Util 1.3.9
> Architecture:   32-bit
> Server MPM:     Prefork
>   threaded:     no
>     forked:     yes (variable process count)
> 
> ldd /usr/lib/httpd/modules/mod_wsgi.so
>     linux-gate.so.1 =>  (0x00d7e000)
>     libpthread.so.0 => /lib/libpthread.so.0 (0x00139000)
>     libdl.so.2 => /lib/libdl.so.2 (0x00d79000)
>     libutil.so.1 => /lib/libutil.so.1 (0x00154000)
>     libm.so.6 => /lib/libm.so.6 (0x00df3000)
>     libc.so.6 => /lib/libc.so.6 (0x0081b000)
>     /lib/ld-linux.so.2 (0x007e4000)
> 
> WSGIPythonHome /usr/local/pythonenvs/ncthreatsenv
> #WSGIPythonPath /usr/local/pythonenvs/ncthreatsenv/lib/python2.7/site-packages
> WSGIScriptAlias /wps /var/www/wsgi/test/myapp.py
> #WSGISocketPrefix /var/run/wsgi
> #WSGIDaemonProcess ncthreats
> #WSGIProcessGroup ncthreats
> #WSGIScriptAlias /wps /var/www/wsgi/wps-server/wsgiscript.py
> 
> <Directory /var/www/wsgi>
> Order allow,deny
> Allow from all
> </Directory>
> 
> The problem I am having is that the hello world in the quick configuration 
> works, but if I add 
> 
> from flask import Flask
> 
> I get no result and apache error logs like such:
> 
> [Wed Sep 25 13:05:07 2013] [info] [client 127.0.0.1] mod_wsgi (pid=15923, 
> process='', application='::1|/wps'): Reloading WSGI script 
> '/var/www/wsgi/test/myapp.py'.
> [Wed Sep 25 13:05:07 2013] [notice] child pid 15923 exit signal Segmentation 
> fault (11)
> [Wed Sep 25 13:05:09 2013] [info] mod_wsgi (pid=15790): Create interpreter 
> '::1|/wps'.
> [Wed Sep 25 13:05:09 2013] [info] [client 127.0.0.1] mod_wsgi (pid=15790, 
> process='', application='::1|/wps'): Loading WSGI script 
> '/var/www/wsgi/test/myapp.py'.
> [Wed Sep 25 13:05:09 2013] [notice] child pid 15790 exit signal Segmentation 
> fault (11)
> [Wed Sep 25 13:05:10 2013] [info] mod_wsgi (pid=15941): Python home 
> /usr/local/pythonenvs/ncthreatsenv.
> [Wed Sep 25 13:05:10 2013] [info] mod_wsgi (pid=15941): Initializing Python.
> [Wed Sep 25 13:05:10 2013] [info] mod_wsgi (pid=15941): Attach interpreter ''.
> 
> Thanks,
> Jim White
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to