Changes between Version 4 and Version 5 of TracModPython
- Timestamp:
- May 17, 2025, 9:26:21 AM (12 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracModPython
v4 v5 55 55 SetHandler mod_python 56 56 PythonInterpreter main_interpreter 57 PythonHandler trac.web.modpython_frontend 57 PythonHandler trac.web.modpython_frontend 58 58 PythonOption TracEnv /var/trac/myproject 59 59 PythonOption TracUriRoot /projects/myproject … … 83 83 PythonOption TracEnvIndexTemplate /srv/www/htdocs/trac/project_list_template.html 84 84 85 # A space delimit ted list, with a "," between key and value pairs.85 # A space delimited list, with a "," between key and value pairs. 86 86 PythonOption TracTemplateVars key1,val1 key2,val2 87 87 … … 89 89 PythonOption TracLocale en_GB.UTF8 90 90 91 # See description above 91 # See description above 92 92 PythonOption TracUriRoot /projects/myproject 93 93 }}} … … 110 110 === Setting the Python Egg Cache 111 111 112 If the Egg Cache isn't writeable by your Web server, you'll either have to change the permissions, or point Python to a location where Apache can write. This can manifest itself as a `500 internal server error` and/or a complaint in the syslog. 112 If the Egg Cache isn't writeable by your Web server, you'll either have to change the permissions, or point Python to a location where Apache can write. This can manifest itself as a `500 internal server error` and/or a complaint in the syslog. 113 113 114 114 {{{#!apache 115 115 <Location /projects/myproject> 116 116 ... 117 PythonOption PYTHON_EGG_CACHE /tmp 117 PythonOption PYTHON_EGG_CACHE /tmp 118 118 ... 119 119 </Location> … … 140 140 SetHandler mod_python 141 141 PythonInterpreter main_interpreter 142 PythonHandler trac.web.modpython_frontend 142 PythonHandler trac.web.modpython_frontend 143 143 PythonOption TracEnvParentDir /var/trac 144 144 PythonOption TracUriRoot /projects … … 234 234 235 235 #remove these if you don't want to force SSL 236 RewriteEngine On 236 RewriteEngine On 237 237 RewriteCond %{HTTPS} off 238 238 RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} … … 245 245 }}} 246 246 247 === Expat-related segmentation faults === #expat248 249 This problem will most certainly hit you on Unix when using Python 2.4.250 In Python 2.4, some version of [http://expat.sourceforge.net/ Expat] (an XML parser library written in C) is used and if Apache is using another version, this results in segmentation faults.251 As Trac 0.11 is using Genshi, which will indirectly use Expat, that problem can now hit you even if everything was working fine before with Trac 0.10. This problem has not been reported for Python 2.5+, so best to upgrade.252 253 247 === Form submission problems 254 248 … … 279 273 SetHandler mod_python 280 274 PythonInterpreter main_interpreter 281 PythonHandler trac.web.modpython_frontend 275 PythonHandler trac.web.modpython_frontend 282 276 PythonOption TracEnv /system/path/to/this/directory 283 277 PythonOption TracUriRoot /path/on/apache … … 361 355 362 356 '''Note''': For the above configuration to have any effect it must be put after the configuration of your project root location, ie {{{<Location /myproject />}}}. 363 364 **Note:** Do not enable python optimizations using the directive `PythonOptimize On`. When optimizations are enabled the page header/footer and documentation for macros and plugins will be hidden. An error will be raised in Trac 1.0.11 and later when optimizations are enabled.365 357 366 358 === HTTPS issues
