VisualSVN 2.1.3 + Trac 配置

来源:互联网 发布:mysql 添加表分区 编辑:程序博客网 时间:2024/05/02 00:23

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

VisualSVN 官网提供的配置很详细,直接按上面说的配置就可以

 

 

  • 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.
  • 启用Admin模块 
  • 找到 %/VisualSVN Server/trac/python/Scripts 
  • 把 *.py 文件中的  C:/Ivan/server-trunk/trac/dist/python/python.exe 
  • 全部替换成 "C:/Program Files/VisualSVN Server/trac/python/python.exe"  注意一定要用“”括起来
  • 然后在CMD中运行下面命令:
  • cd C:/Program Files/VisualSVN Server/trac/python/Scripts
  • trac-admin 项目Trac目录 permission add 用户名 TRAC_ADMIN
  • 这样就配置完成