duraboys
2011. 6. 29. 14:28
2011. 6. 29. 14:28
- Download VisualSVN Server 2.1 or later.
- Install it using default settings.
- Create repository "MyProject" in VisualSVN Server Manager.
- Create at least one user if you use Subversion authentication.
- Download VisualSVN-Server-Trac-2.1.1.21699.zip (~12MB).
- Unzip it to %ProgramFiles%\VisualSVN Server\
- Create folder C:\Trac
- Allow "Full Control" access to C:\Trac folder for built-in Network Service account (or other account that is used to run VisualSVN Server's service).
- Execute command:
"%ProgramFiles%\VisualSVN Server\trac\trac-admin.bat" C:\Trac\MyProject initenv
Use default settings. Provide C:\Repositories\MyProject as repository path.
- Add system variable
PYTHONHOME=%ProgramFiles%\VisualSVN Server\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 VisualSVN
Require valid-user
</Location>
- Restart VisualSVN Server.
- Open http://localhost/trac/ or https://localhost/trac/ (if you setup secure connections) in a browser and enter user name and password.
http://www.visualsvn.com/server/trac/