Changes between Version 2 and Version 3 of TracModPython
- Timestamp:
- Dec 12, 2010, 5:08:15 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracModPython
v2 v3 49 49 50 50 The option '''`TracUriRoot`''' may or may not be necessary in your setup. Try your configuration without it; if the URLs produced by Trac look wrong, if Trac does not seem to recognize URLs correctly, or you get an odd "No handler matched request to..." error, add the '''`TracUriRoot`''' option. You will notice that the `Location` and '''`TracUriRoot`''' have the same path. 51 52 The options available are 53 {{{ 54 # For a single project 55 PythonOption TracEnv /var/trac/myproject 56 # For multiple projects 57 PythonOption TracEnvParentDir /var/trac/myprojects 58 # For the index of multiple projects 59 PythonOption TracEnvIndexTemplate /srv/www/htdocs/trac/project_list_tepmlate.html 60 # A space delimitted list, with a "," between key and value pairs. 61 PythonOption TracTemplateVars key1,val1 key2,val2 62 # Useful to get the date in the wanted order 63 PythonOption TracLocale en_GB.UTF8 64 # See description above 65 PythonOption TracUriRoot /projects/myproject 66 # Override default python egg cache location 67 PythonOption PYTHON_EGG_CACHE /var/trac/myprojects/egg-cache 68 }}} 51 69 52 70 === Configuring Authentication === … … 205 223 For a virtual host that supports multiple projects replace "`TracEnv`" /var/trac/myproject with "`TracEnvParentDir`" /var/trac/ 206 224 225 Note: !DocumentRoot should not point to your Trac project env. As Asmodai wrote on #trac: "suppose there's a webserer bug that allows disclosure of !DocumentRoot they could then leech the entire Trac environment". 226 207 227 == Troubleshooting == 208 228 … … 220 240 === Expat-related segmentation faults === #expat 221 241 222 This problem will most certainly hit you on Unix when using python 2.4.242 This problem will most certainly hit you on Unix when using Python 2.4. 223 243 In Python 2.4, some version of Expat (an XML parser library written in C) is used, 224 244 and if Apache is using another version, this results in segmentation faults. 225 As Trac 0.11 is using Genshi, which will useindirectly use Expat, that problem245 As Trac 0.11 is using Genshi, which will indirectly use Expat, that problem 226 246 can now hit you even if everything was working fine before with Trac 0.10. 227 247 … … 266 286 Pay attention to the version of the installed mod_python and sqlite packages. Ports have both the new and old ones, but earlier versions of pysqlite and mod_python won't integrate as the former requires threaded support in python, and the latter requires a threadless install. 267 287 268 If you compiled and installed apache2, apache wouldn´t support threads (cause it doesn´t work very well on FreeBSD). You could force thread support when running ./configure for apache, using --enable-threads, but this isn´t recom endable.288 If you compiled and installed apache2, apache wouldn´t support threads (cause it doesn´t work very well on FreeBSD). You could force thread support when running ./configure for apache, using --enable-threads, but this isn´t recommendable. 269 289 The best option [[http://modpython.org/pipermail/mod_python/2006-September/021983.html seems to be]] adding to /usr/local/apache2/bin/ennvars the line 270 290