Changes between Version 2 and Version 3 of TracStandalone

Show
Ignore:
Timestamp:
08/11/09 08:16:13 (5 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracStandalone

    v2 v3  
    4040To exit the server on Windows, be sure to use {{{CTRL-BREAK}}} -- using {{{CTRL-C}}} will leave a Python process running in the background. 
    4141 
    42 When running as a Windows service using a utility such as [http://www.google.com/search?q=srvany.exe SRVANY], stopping or restarting the service will also leave a Python process running -- restart the system instead. 
    43  
     42== Installing as a Windows Service == 
     43 
     44To install as a Windows service, get the [http://www.google.com/search?q=srvany.exe SRVANY] utility and run: 
     45{{{ 
     46 C:\path\to\instsrv.exe tracd C:\path\to\srvany.exe 
     47 reg add HKLM\SYSTEM\CurrentControlSet\Services\tracd\Parameters /v Application /d "\"C:\path\to\python.exe\" \"C:\path\to\python\scripts\tracd-script.py\" <your tracd parameters>" 
     48 net start tracd 
     49}}} 
     50 
     51'''DO NOT''' use {{{tracd.exe}}}.  Instead register {{{python.exe}}} directly with {{{tracd-script.py}}} as a parameter.  If you use {{{tracd.exe}}}, it will spawn the python process without SRVANY's knowledge.  This python process will survive a {{{net stop tracd}}}. 
     52 
     53If you want tracd to start automatically when you boot Windows, do: 
     54{{{ 
     55 sc config tracd start= auto 
     56}}} 
     57 
     58The spacing here is important. 
    4459 
    4560== Using Authentication == 
     
    155170It is possible to use md5sum utility to generate digest-password file using such method: 
    156171{{{ 
    157 echo -e "${user}:trac:${password}\c" | md5sum - >>to-file 
    158 }}} 
    159 and manually delete " -" from the end and add "${user}:trac:" to the start of line from 'to-file'. You can see attachment:trac-digest-corrected.sh for detail. 
     172 $ printf "${user}:trac:${password}" | md5sum - >>user.htdigest 
     173}}} 
     174and manually delete " -" from the end and add "${user}:trac:" to the start of line from 'to-file'. 
    160175 
    161176== Tips == 
     
    185200Tracd supports serving projects with different base urls than /<project>. The parameter name to change this is 
    186201{{{ 
    187 tracd --base-path=/some/path 
     202 $ tracd --base-path=/some/path 
    188203}}} 
    189204