分享

VisualSVN Server | Installing Trac with VisualSVN Server

 Augest_Rush 2014-06-15
Note
Note Currently we do not technically support Trac plug-in for VisualSVN Server. Please note that Trac plugin for VisualSVN Server was never released officially and you can use it on your own risk. We do not plan to update the plug-in on a regular basis.
  1. Download VisualSVN Server 2.6.4 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-2.6.4.45142-Trac-0.12.3.zip (~17MB).
  6. Unzip it to %VISUALSVN_SERVER% folder
  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:
    "%VISUALSVN_SERVER%trac\trac-admin.bat" C:\Trac\MyProject initenv
    Use default settings. Provide C:\Repositories\MyProject as repository path.
  10. Execute the following command to add MyProject Subversion repository to the Trac:
    "%VISUALSVN_SERVER%trac\trac-admin.bat" c:\Trac\MyProject repository add MyProject C:\Repositories\MyProject svn
  11. Add the following command to the MyProject repository post-commit hook:
    @"%VISUALSVN_SERVER%trac\trac-admin.bat" C:\Trac\MyProject changeset added "%1" "%2"
  12. Add the following command to the MyProject repository post-revision property change hook:
    @"%VISUALSVN_SERVER%trac\trac-admin.bat" C:\Trac\MyProject changeset modified "%1" "%2"
  13. Add system variable:
    PYTHONHOME=C:\Program Files (x86)\VisualSVN Server\trac\python
    The path may be different depending on where VisualSVN Server is installed. Please check the %VISUALSVN_SERVER% environment variable for a hint.
  14. Add the following text to file %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
    
      # Set the option's value to on if Windows Basic Authentication
      # is enabled, otherwise set it to off.
      AuthnVisualSVNBasic on
    
      # Set the option's value to on if Windows Integrated Authentication
      # (available in the Enterprise Edition) is enabled, otherwise set it to off.
      AuthnVisualSVNIntegrated on
    
      Require valid-user
    </Location>
  15. Stop and then Start VisualSVN Server.
  16. Open http://localhost/trac/ or https://localhost/trac/ (if you setup secure connections) in a browser and enter user name and password.

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多