본문 바로가기

Java For All/eClipse

Installing Trac with VisualSVN Server

  1. Download VisualSVN Server 2.0 or later.
  2. Install it using default settings.
  3. Create repository "MyProject" in VisualSVN Server Manager.
  4. Create at least one user if you use Subversion authentication.
  5. Download VisualSVN-Server-Trac-2.0.0.20384.zip(~12MB).
  6. Unzip it to %ProgramFiles%\VisualSVN Server\
  7. Create folder C:\Trac
  8. 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).
  9. Execute command:
    "%ProgramFiles%\VisualSVN Server\trac\trac-admin.bat" C:\Trac\MyProject initenv
    Use default settings. Provide C:\Repositories\MyProject as repository path.
  10. Add system variable
    PYTHONHOME=%ProgramFiles%\VisualSVN Server\Trac\python
  11. 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>
  12. Restart VisualSVN Server.
  13. Open http://localhost/trac/ or https://localhost/trac/ (if you setup secure connections) in a browser and enter user name and password.