Install Trac on Windows 2003 server
I was searching for some task / ticket management system for my small project I’m doing with a friend. Previously we were using Nozbe but it became too small and it had its own glitches. I did some research and decided to go for Trac. It’s simple, expandable and integrates nicely with subversion.
I spent almost two days installing it on my Windows 2003 development / test server so I wrote a step-by-step manual for future reference.
It assumes you already have a Win2003 server with subversion repository. I also use SVNService to run it as a service. We’ll be using tracd web server with digest authentication for developer access.
Here we go.
Text written in constant-width font is a command you run from command prompt.
I’ll assume you’re creating a project called RuleTheWorld. Replace it with your project name.
- Install Python -> c:\program files\python
- Add “c:\program files\python” to %PATH%
- Install Tools -> http://peak.telecommunity.com/DevCenter/EasyInstall#installation-instructions
- Add “c:\program files\python\scripts” to %PATH%
easy_install Genshimd c:\program files\trac, cd there- svn checkout http://svn.edgewall.org/repos/trac/trunk
cd trunkpython setup.py installtrac-admin "c:\program files\trac\RuleTheWorld" initenv- http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91
tracd -p 8080 "c:\program files\trac\RuleTheWorld"- go to http://localhost:8080 with a browser, check if it works
- download Apache installation pack for windows, extract htdigest.exe from it
F25539_htdigest.exe -c passwd trac usernametrac-admin "c:\program files\trac\RuleTheWorld" permission add username TRAC_ADMINeasy_install TracSpamFilter– if you’ll be setting up a public Trac access- In trac.ini, add the following section at the end
[components]
tracspamfilter.* = enabled - download http://trac-hacks.org/changeset/latest/tracpygmentsplugin?old_path=/&filename=tracpygmentsplugin&format=zip
- unzip it, cd that folder, run
python setup.py install - In trac.ini add this line
[components]
tracpygments.* = enabled - In trac.ini modify this line
[ticket]
restrict_owner = true - download http://trac-hacks.org/changeset/latest/discussionplugin?old_path=/&filename=discussionplugin&format=zip
- unzip it, cd that folder, run
python setup.py install - In trac.ini modify this section
[header_logo]
alt = RuleTheWorld
height = -1
link = /RuleTheWorld
src = /RuleTheWorld/raw-attachment/wiki/logo/logo.png
width = -1 trac-admin "C:\Program Files\Trac\RuleTheWorld" upgradetracd -p 8080 -a "RuleTheWorld","C:\Program Files\Trac\RuleTheWorld\passwd",trac "C:\Program Files\Trac\RuleTheWorld"- Go to http://localhost:8080/RuleTheWorld, you should see main page of the project. Go to Admin / Plugins, enable discussion components
trac-admin "C:\Program Files\Trac\RuleTheWorld" upgrade- Go to Admin / Permissions, remove Anonymous access
- Add “C:\Program Files\SQLite” to %PATH%
- Install Trac as a service. Use SrvAny from Resource kit – follow the manual at http://support.microsoft.com/kb/137890/en-us. Put
tracd -p 8080 -a "RuleTheWorld","C:\Program Files\Trac\RuleTheWorld\passwd",trac "C:\Program Files\Trac\RuleTheWorld"as “Parameters” key, the service should start fine
That’s it! In 32 simple steps ;)
Recent Comments