Edgewall Software

Changes between Version 66 and Version 67 of TracSubversion


Ignore:
Timestamp:
Jan 22, 2009, 2:49:24 PM (15 years ago)
Author:
lukasgraf
Comment:

added workaround for dict not accessible in restricted mode with mod_wsgi

Legend:

Unmodified
Added
Removed
Modified
  • TracSubversion

    v66 v67  
    169169}}}
    170170
     171However, this problem can also occur using mod_wsgi in non-daemon mode. Running mod_wsgi in daemon mode, with one daemon group for each trac instance seems to fix the problem.
     172
     173Example for setting up daemon process groups in httpd.conf: (see also: [http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide QuickConfigurationGuide at googleCode]
     174
     175{{{
     176WSGIDaemonProcess projectone user=wwwrun group=root threads=15 python-eggs=/trac/projectOne/egg-cache
     177WSGIScriptAlias /projects/projectOne /trac/projectOne/trac.wsgi
     178
     179<Directory /trac/projectOne/>
     180   WSGIProcessGroup projectone
     181</Directory>
     182
     183
     184WSGIDaemonProcess projecttwo user=wwwrun group=root threads=15 python-eggs=/trac/projectTwo/egg-cache
     185WSGIScriptAlias /projects/projectTwo /trac/projectTwo/trac.wsgi
     186
     187<Directory /trac/projectTwo/>
     188   WSGIProcessGroup projecttwo
     189</Directory>
     190
     191}}}
     192
     193
     194
    171195==== `TypeError: argument number 0: a 'apr_pool_t *' is expected, 'instance(<libsvn.core.GenericSWIGWrapper instance at 0x...>)' is received` ====
    172196Use the same fix as above. See #2611 for more information if needed.