Changes between Version 23 and Version 24 of TracOnWindows/Advanced
- Timestamp:
- Mar 14, 2014, 12:52:56 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracOnWindows/Advanced
v23 v24 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 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 {{{ 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`. 46 47 The Python Egg cache directory on Windows: 48 - If run under the user's session, the Python Egg cache can be found in `%AppData%\Roaming`, for example: 49 {{{#!python 47 50 os.environ['TRAC_ENV'] = r'C:\TracEnvironment' 48 os.environ['PYTHON_EGG_CACHE'] = r'C:\Users\Administrator\AppData\Roaming\Python-Eggs\trac-1.0-py2.7-win32.egg-tmp\trac' 51 os.environ['PYTHON_EGG_CACHE'] = r'C:\Users\Administrator\AppData\Roaming\Python-Eggs' 52 }}} 53 - If run under a Window service, you should create a directory for Python Egg cache. 54 {{{#!python 55 os.environ['TRAC_ENV'] = r'C:\TracEnvironment' 56 os.environ['PYTHON_EGG_CACHE'] = r'C:\Trac-Python-Eggs' 49 57 }}} 50 58