Changes between Version 21 and Version 22 of TracOnWindows/Advanced
- Timestamp:
- Mar 14, 2014, 10:54:49 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracOnWindows/Advanced
v21 v22 42 42 43 43 First, you need to integrate [http://code.google.com/p/modwsgi mod_wsgi] in your Apache installation. There are [http://code.google.com/p/modwsgi/wiki/DownloadTheSoftware#Windows_Binary_Downloads pre-compiled binaries] available for download. Choose the right one depending on the version of Apache and Python you're running. Then follow the [http://code.google.com/p/modwsgi/wiki/InstallationOnWindows installation instructions] for this module, and the [[TracModWSGI]] installations instructions. The resulting configuration (from the words of the `mod_wsgi` author) is supposed to be more efficient than one using `mod_python`. 44 45 Adjustments to the paths included in the `.wsgi` script must also be made. The Trac Environment must point to the same path as was specified with `Trac-admin path/to/env initenv`. The Python Egg cache can be found in `%AppData%` on Windows. Example values follow: 46 {{{ 47 os.environ['TRAC_ENV'] = 'C:\\TracEnvironment\\' 48 os.environ['PYTHON_EGG_CACHE'] = 'C:\\Users\\Administrator\\AppData\\Roaming\\Python-Eggs\\trac-1.0-py2.7-win32.egg-tmp\\trac\\' 49 }}} 50 51 Note that back-slashes need to be escaped in python strings. 44 52 45 53 ==== Apache and `mod_python` ====