On Oct 29, 7:00 pm, Leho Kraav <[email protected]> wrote:
> hi all wsgi gurus
>
> my goal was to get several isolated trac no-site-packages virtualenvs
> running under mod_wsgi: 0.11 virtualenv for bunch of live projets,
> 0.12-dev1 for project dev1 and 0.12-dev2 for project dev2. but i am
> somewhat unclear regarding ApplicationGroups and ProcessGroups - some
> setup guides did it one way, some the other. so i also seem to have a
> mix in my config file. what about having both dev1 and dev2 both in
> ApplicationGroup %{SERVER}%, should they be in separate AG, or does
> separate PGs take care of that? perhaps someone could tell me if
> there's something to be fixed here:

For Trac, due to limitations in Python wrappers for subversion, you
must use:

  WSGIApplicationGroup %{GLOBAL}

So, if using subversion you don't have a choice and if need separation
must use daemon process groups instead.

> /etc/apache2/modules.d/70_mod_wsgi.conf:
>
> <IfDefine WSGI>
> LoadModule wsgi_module modules/mod_wsgi.so
>
> WSGIDaemonProcess dev1 user=leho group=apache threads=25 python-path=/
> secure/trac/virtual-0.12-dev1/lib/python2.5/site-packages:/secure/trac/
> virtual-0.12-dev1/bin
> WSGIScriptAlias /project/dev1 /secure/trac/virtual-0.12-dev1/bin/
> virtual-0.12-dev1.wsgi
> <Location /projekt/dev1>
>         WSGIReloadMechanism Process

Delete WSGIReloadMechanism directive. This is default for mod_wsgi 2.X
and will not even have choice in mod_wsgi 3.X. You should not be using
mod_wsgi 1.X.

>         WSGIProcessGroup dev1
>         WSGIApplicationGroup %{SERVER}

Use:

  WSGIApplicationGroup %{GLOBAL}

to avoid subversion issues.

>         SetEnv trac.locale et_EE.UTF-8
> </Location>
>
> WSGIDaemonProcess dev2 user=leho group=apache threads=25 python-path=/
> secure/trac/virtual-0.12-dev2/lib/python2.5/site-packages:/secure/trac/
> virtual-0.12-dev2/bin
> WSGIScriptAlias /project/dev2 /secure/trac/virtual-0.12-dev2/bin/
> virtual-0.12-dev2.wsgi
> <Location /projekt/dev2>
>         WSGIReloadMechanism Process

Delete WSGIReloadMechanism directive. This is default for mod_wsgi 2.X
and will not even have choice in mod_wsgi 3.X. You should not be using
mod_wsgi 1.X.

>         WSGIProcessGroup dev2
>         WSGIApplicationGroup %{SERVER}

Use:

  WSGIApplicationGroup %{GLOBAL}

to avoid subversion issues.

>         SetEnv trac.locale et_EE.UTF-8
> </Location>
>
> WSGIScriptAlias /project /secure/trac/virtual-0.11/bin/
> virtual-0.11.wsgi
> <Directory /secure/trac/virtual-0.11/bin>
>     WSGIApplicationGroup %{GLOBAL}
>     SetEnv trac.locale et_EE.UTF-8
>     SetEnv trac.env_index_template /secure/home/httpd/htdocs/project/
> index.html
> </Directory>

This one will run in embedded mode. Especially if using prefork MPM,
bad idea to use embedded mode. Better off delegating this one to its
own daemon process group as well.

Graham

> </IfDefine>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" 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/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to