Changes between Version 8 and Version 9 of Trac Standalone
- Timestamp:
- Oct 25, 2020, 10:52:22 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Trac Standalone
v8 v9 44 44 45 45 === Option 1 46 To install as a Windows service, get the [http ://www.google.com/search?q=srvany.exe SRVANY] utility and run:46 To install as a Windows service, get the [https://www.google.com/search?q=srvany.exe SRVANY] utility and run: 47 47 {{{#!cmd 48 48 C:\path\to\instsrv.exe tracd C:\path\to\srvany.exe … … 73 73 }}} 74 74 75 For Windows 7 User, srvany.exe may not be an option, so you can use [http ://www.google.com/search?q=winserv.exe WINSERV] utility and run:75 For Windows 7 User, srvany.exe may not be an option, so you can use [https://www.google.com/search?q=winserv.exe WINSERV] utility and run: 76 76 {{{#!cmd 77 77 "C:\path\to\winserv.exe" install tracd -displayname "tracd" -start auto "C:\path\to\python.exe" c:\path\to\python\scripts\tracd-script.py <your tracd parameters>" … … 81 81 === Option 2 82 82 83 Use [http ://trac-hacks.org/wiki/WindowsServiceScript WindowsServiceScript], available at [http://trac-hacks.org/ Trac Hacks]. Installs, removes, starts, stops, etc. your Trac service.83 Use [https://trac-hacks.org/wiki/WindowsServiceScript WindowsServiceScript], available at [https://trac-hacks.org/ Trac Hacks]. Installs, removes, starts, stops, etc. your Trac service. 84 84 85 85 === Option 3 … … 95 95 Tracd allows you to run Trac without the need for Apache, but you can take advantage of Apache's password tools (`htpasswd` and `htdigest`) to easily create a password file in the proper format for tracd to use in authentication. (It is also possible to create the password file without `htpasswd` or `htdigest`; see below for alternatives) 96 96 97 Make sure you place the generated password files on a filesystem which supports sub-second timestamps, as Trac will monitor their modified time and changes happening on a filesystem with too coarse-grained timestamp resolution (like `ext2` or `ext3` on Linux, or HFS+ on OSX). 97 {{{#!div style="border: 1pt dotted; margin: 1em" 98 **Attention:** Make sure you place the generated password files on a filesystem which supports sub-second timestamps, as Trac will monitor their modified time and changes happening on a filesystem with too coarse-grained timestamp resolution (like `ext2` or `ext3` on Linux, or HFS+ on OSX). 99 }}} 98 100 99 101 Tracd provides support for both Basic and Digest authentication. Digest is considered more secure. The examples below use Digest; to use Basic authentication, replace `--auth` with `--basic-auth` in the command line. … … 139 141 This section describes how to use `tracd` with Apache .htpasswd files. 140 142 141 Note: It is necessary (at least with Python 2.6) to install the fcrypt package in order to142 decode some htpasswd formats. Trac source code attempt an `import crypt` first, but there143 is no such package for Python 2.6. Only `SHA-1` passwords (since Trac 1.0)work without this module.143 Note: On Windows It is necessary to install the [https://pypi.python.org/pypi/passlib passlib] 144 package in order to decode some htpasswd formats. Only `SHA-1` passwords (since Trac 1.0) 145 work without this module. 144 146 145 147 To create a .htpasswd file use Apache's `htpasswd` command (see [#GeneratingPasswordsWithoutApache below] for a method to create these files without using Apache): … … 165 167 === Digest authentication: Using a htdigest password file 166 168 167 If you have Apache available, you can use the htdigest command to generate the password file. Type 'htdigest' to get some usage instructions, or read [http ://httpd.apache.org/docs/2.0/programs/htdigest.html this page] from the Apache manual to get precise instructions. You'll be prompted for a password to enter for each user that you create. For the name of the password file, you can use whatever you like, but if you use something like `users.htdigest` it will remind you what the file contains. As a suggestion, put it in your <projectname>/conf folder along with the [TracIni trac.ini] file.169 If you have Apache available, you can use the htdigest command to generate the password file. Type 'htdigest' to get some usage instructions, or read [https://httpd.apache.org/docs/2.0/programs/htdigest.html this page] from the Apache manual to get precise instructions. You'll be prompted for a password to enter for each user that you create. For the name of the password file, you can use whatever you like, but if you use something like `users.htdigest` it will remind you what the file contains. As a suggestion, put it in your <projectname>/conf folder along with the [TracIni trac.ini] file. 168 170 169 171 Note that you can start tracd without the `--auth` argument, but if you click on the ''Login'' link you will get an error. … … 303 305 Run tracd: 304 306 {{{#!sh 305 tracd -p 8101 - r -s proxified --base-path=/project/proxified307 tracd -p 8101 -s proxified --base-path=/project/proxified 306 308 }}} 307 309