Edgewall Software

Changes between Version 23 and Version 24 of TracOnWindows/Advanced


Ignore:
Timestamp:
Mar 14, 2014, 12:52:56 PM (8 years ago)
Author:
Jun Omae
Comment:

Should not use Python-Eggs directory under the user's session if run under a Windows service

Legend:

Unmodified
Added
Removed
Modified
  • TracOnWindows/Advanced

    v23 v24  
    4343First, 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`.
    4444
    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 {{{
     45Adjustments 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
     47The 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
    4750os.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'
     51os.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
     55os.environ['TRAC_ENV'] = r'C:\TracEnvironment'
     56os.environ['PYTHON_EGG_CACHE'] = r'C:\Trac-Python-Eggs'
    4957}}}
    5058