Hi. We do use mod_wsgi and virtualenv in MapFish, and have a wiki page
documenting this. Check out
<http://trac.mapfish.org/trac/mapfish/wiki/HowToMapFishServerApache>.
Hope this helps.

Eric

2008/11/10, Christoph Haas <[EMAIL PROTECTED]>:
> Hi,
>
> I'm trying to deploy a Pylons app via mod_wsgi (Apache). That works so far.
> But I want to use a virtualenv directory and can't find any documentation
> on it. I found something for workingenv but don't know how to "translate"
> that to virtualenv.
>
> http://code.google.com/p/modwsgi/wiki/VirtualEnvironments said something
> about WSGIPythonHome but that can't be defined per virtual host. So I
> would have to use the very same virtualenv directory for all deployed
> applications (which is pretty absurd).
>
> I also found
> http://pypi.python.org/pypi/virtualenv#using-virtualenv-without-bin-python
> but that just prints these lines into Apache's error.log:
>
> ============================================================
> [Mon Nov 10 13:12:23 2008] [error] [client 80.85.196.21] mod_wsgi
> (pid=26216): Target WSGI script '/etc/apache2/screenshots.debian.net.wsgi'
> cannot be loaded as Python module.
> [Mon Nov 10 13:12:23 2008] [error] [client 80.85.196.21] mod_wsgi
> (pid=26216): Exception occurred processing WSGI
> script '/etc/apache2/screenshots.debian.net.wsgi'.
> [Mon Nov 10 13:12:23 2008] [error] [client 80.85.196.21] Traceback (most
> recent call last):
> [Mon Nov 10 13:12:23 2008] [error] [client 80.85.196.21]
> File "/etc/apache2/screenshots.debian.net.wsgi", line 8, in <module>
> [Mon Nov 10 13:12:23 2008] [error] [client 80.85.196.21]
> execfile(activate_this, dict(__file__=activate_this))
> [Mon Nov 10 13:12:23 2008] [error] [client 80.85.196.21]
> File "/home/debshots/bin/activate", line 4
> [Mon Nov 10 13:12:23 2008] [error] [client 80.85.196.21]      deactivate ()
> {
> [Mon Nov 10 13:12:23 2008] [error] [client 80.85.196.21]
> ^
> [Mon Nov 10 13:12:23 2008] [error] [client 80.85.196.21]  SyntaxError:
> invalid syntax
> ============================================================
>
> Seems like it can't run virtualenv's 'activate' script like that. :(
>
> Any ideas?
>
> Kindly
>  Christoph
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to