Changes between Version 36 and Version 37 of TracOnWindowsStandalone
- Timestamp:
- Oct 4, 2010, 12:36:40 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracOnWindowsStandalone
v36 v37 63 63 64 64 == Running Tracd as service == 65 ''Instructions also valid for 0.11, 0.12 and newer (see #7496)'' 65 66 See also TracStandalone#InstallingasaWindowsService and #7496. 67 68 === Using `instsrv`/`srvany` 66 69 * download the Windows Server 2003 Resource Kit at [http://www.microsoft.com/downloads/details.aspx?FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&displaylang=en Microsoft] 67 * run ` !InstSrv <servicename> c:\path\to\resourcekit\!SrvAny.exe`, where you insert your own service name (without angle brackets, e.g. tracd) and the full path to the `SrvAny.exe`.70 * run `InstSrv <servicename> c:\path\to\resourcekit\SrvAny.exe`, where you insert your own service name (without angle brackets, e.g. ''tracd'') and the full path to the `SrvAny.exe`. 68 71 * open **HKEY_LOCAL_MACHINE\SYSTEM\!CurrentControlSet\Services\<servicename>** in !RegEdit 69 72 * create subkey **Parameters**, below which you will create 2 string values: 70 73 * create string value **Application** with the full path to `python.exe` 71 74 * create string value **!AppParameters** with the set of desired tracd parameters, e.g. `c:\Python25\Scripts\tracd-script.py --port 8080 c:\path\to\trac"` 72 * open the Services tool (somewhere in the administrative tools in the Windows control panel) and start your service 75 * open the Services tool (somewhere in the administrative tools in the Windows control panel) and start your service, or run `net start tracd` 73 76 74 (tested with trac 0.11.2 on Windows XP) 77 ''(tested with trac 0.11.2 on Windows XP, Windows 7)'' 75 78 79 === Using !FireDaemon 76 80 You can also use [http://www.firedaemon.com FireDaemon] although there is no longer a free version available (FireDaemon Lite having been discontinued). No need to open the registry, FireDaemon GUI allows you to add parameters to your service command line. (tested with trac 0.11.2 on Windows Vista) 77 81 78 ''Instructions for Windows 7'' 79 * Download `instsrv.exe` and `srvany.exe` from Microsoft 80 * `drive:\path\to\InstSrv.exe tracd drive:\path\to\SrvAny.exe` 81 * open **HKEY_LOCAL_MACHINE\SYSTEM\!CurrentControlSet\Services\tracd** in !RegEdit 82 * create subkey **Parameters**, below which you will create 2 string values: 83 * create string value **Application** - `drive:\path\to\tracd.exe` 84 * create string value **!AppParameters** with the set of desired tracd parameters, e.g. `--port 8080 --auth=proj_name,drive:\path\to\proj\digest.txt,trac drive:\path\to\proj\` 85 * Run `net start tracd` 82 === Using `nssm` 86 83 87 ''Instructions for Windows 2008, using nssm (works with other Windows versions, e.g. Windows XP sp2 x64)'' 88 * download and extract nssm from http://iain.cx/src/nssm/ 84 * download and extract `nssm` from http://iain.cx/src/nssm/ 89 85 * run 'nssm install tracd' 90 * enter complete path to python.exe in Application field 91 - example 1: `c:\Python26\python.exe` 92 - example 2: `C:\Python27\Scripts\tracd.exe` 93 * enter parameters in Options field 94 - example 1: `c:\Python26\Scripts\tracd-script.py --port 8000 --basic-auth "*,c:\trac\.htpasswd,test" c:\trac\test` 95 - example 2: `-p 8000 --basic-auth "*,c:\trac\.htpasswd,test" c:\trac\test` 86 * enter complete path to python.exe in Application field (e.g. `c:\Python26\python.exe`) 87 * enter parameters in Options field (e.g. `c:\Python26\Scripts\tracd-script.py --port 8000 --basic-auth "*,c:\trac\.htpasswd,test" c:\trac\test`) 96 88 * run 'net start tracd' 89 90 ''(tested with Windows 2008, Windows XP sp2 x64)'' 97 91 98 92 If you'd like to review or change those parameters later on, refer to the same registry keys as mentioned above (`srvany` and `nssm` use the same). 93 94 Tip: don't try to be smart and use `...\Scripts\tracd.exe` instead of `...\python.exe`: if you do this, as tracd.exe starts a new python process, the server will survive a service stop. 99 95 100 96 == Using Trac (and Subversion) == … … 104 100 Keep in mind that anonymous (not logged in) users can by default access most but not all of the features. You will need to configure authentication and grant additional [wiki:TracPermissions permissions] to authenticated users to see the full set of features. 105 101 106 '' Enjoy!''102 '' Enjoy! '' 107 103 108 104