I have a working flask/mod-wsgi app on a Debian box running Apache 2.2.22 
with mod-wsgi 3.3.  It uses WSGIPythonHome to point to a virtualenv, and 
everything is fine.  I'm trying to move to a second Debian box, running 
Apache 2.4.9 with mod-wsgi 4.3.0, with a very similar vhost config, but it 
doesn't seem to honor the virtualenv.  Here's some of the config:

        #WSGIPythonHome /home/ykdvd/.virtualenvs/DDG
        WSGIDaemonProcess ddgapp display-name=ddg-wsgi 
python-home=/home/ykdvd/.virtualenvs/DDG user=www-data group=www-data 
processes=1 threads=10 inactivity-timeout=600 
        WSGIScriptAlias / /var/www/DDG/PFlask/gooserunner.wsgi

As you can see by the commented-out line, I tried replacing the 
WSGIPythonHome with the "python-home" option for WSGIDaemonProcess, with no 
better luck.  The virtualenv is fine, I can switch to it in bash and 
manually run stuff from my app.  I turned on LogLevel info and I get this 
from startup:

    [wsgi:info] [pid 16212] mod_wsgi (pid=16212): Python home 
/home/ykdvd/.virtualenvs/DDG.

so it is picking up the directive, and my wsgi does start up, but when I 
spit out sys.path it is all from /usr/lib/python2.7, and nothing from the 
virtualenv, so my imports obviously fail.  mod_python isn't installed - 
Apache displays "Apache/2.4.9 (Debian) PHP/5.5.6-1 OpenSSL/1.0.1c 
mod_wsgi/4.3.0 Python/2.7.8 ", and DUMP_MODULES doesn't show it.  As far as 
I know there is only the one Python installation on the machine.

I'm looking for anything I broke in the vhost config or the move between 
machines, but I'm wondering if there is something about the 
Apache2.4/WSGI4.3 combo that may be different from 2.2/3.3 in this regard? 
 I couldn't see anything on a quick browse through the release notes.   
Would it silently fail if the virtualenv didn't have the correct 
permissions or something?

-- 
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/d/optout.

Reply via email to