Trac on Windows

Setting trac up on windows seems to be a pain in the ass, especially if you want it to work with VisualSVN and its builtin Apache server

But the two following link could be a start especially if you are okay with not using the most recent version.

The solution I used

This link is a guide for setting up trac for use with its own webserver tracd. This works well but don't install the Python SVN bindings from the guide if you are using an updated VisualSVN server, because then you won't be able to get your repository to work in trac. Instead install svn-phyton bindings from tigris.org. For VisualSVN server 1.7.3 you should use svn-phyton-1.6.3 but that is likely to change with new versions of VisualSVN server.

To configure tracd to start as a service you need some tools from the windows resource kit. Namely InstSrv and SrvAny.exe.

  1. run InstSrv tracd “C:\Program Files\Windows Resource Kit\tools\SrvAny.exe” (or where you installed the resource kit, “tracd” will become the name of the service)
  2. open regedit and go to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\tracd create a new subkey: Parameters
  3. add a string to the subkey named: Application
  4. give it the value: C:\Python25\Scripts\tracd -p 8000 E:\Trac\ (where 8000 is the port to use for your trac server, and E:\Trac is the full directory to your trac dir you created with “trac-admin E:\Trac initenv”

This was found here.

A thrid and alternative solution is to use a full trac installation tool like BitNami Trac Stack I have no experience with it, but it also seems out of date.

Anyway I got it to work: http://trac.sjkp.dk