Visual SVN + Trac

http://visualsvn.com/server/trac/

Installing Trac with VisualSVN Server

* Download VisualSVN Server 1.5.2.

* Install it using default settings.

* Create repository “MyProject” in VisualSVN Server Manager.

* Download VisualSVN-Server-Trac-1.5.2-14459.zip (~10MB).

* Unzip it to C:\Program Files\VisualSVN Server\

* Create folder C:\Trac

* Execute following command:

“C:\Program Files\VisualSVN Server\trac\trac-admin.bat” C:\Trac\MyProject initenv

* Use default settings. Provide C:\Repositories\MyProject as repository path.

* Add following line at the top of file C:\Program Files\VisualSVN Server\httpd-wrapper.bat (after the ECHO command) :

set PYTHONHOME=%~dp0\Trac\python

* Add the following text to file C:\Program Files\VisualSVN Server\conf\httpd-custom.conf if you use Subversion authentication:

LoadModule python_module “trac/python/mod_python_so.pyd”

LoadModule authz_user_module bin/mod_authz_user.so

<Location /trac>

SetHandler mod_python

PythonInterpreter main_interpreter

PythonHandler trac.web.modpython_frontend

PythonOption TracEnvParentDir C:\Trac

PythonOption TracUriRoot /trac

AuthName “Trac”

AuthType Basic

AuthBasicProvider file

AuthUserFile “C:/Repositories/htpasswd”

Require valid-user

</Location>

or this text if you use Windows authentication:

LoadModule python_module “trac/python/mod_python_so.pyd”

LoadModule authz_user_module bin/mod_authz_user.so

<Location /trac>

SetHandler mod_python

PythonInterpreter main_interpreter

PythonHandler trac.web.modpython_frontend

PythonOption TracEnvParentDir C:\Trac

PythonOption TracUriRoot /trac

 

AuthName “Trac”

AuthType Basic

AuthBasicProvider visualsvn

Require valid-user

</Location>

* Restart VisualSVN Server.

* Open http://localhost/trac/ in browser and enter user name and password.

Leave a comment