如何在 CentOS 7中安装WebSVN


WebSVN为你的Subversion提供了一个视图,其设计用来对应Subversion的各种功能。你可以检查任何文件或目录的日志,以及查看任何指定版本中所修改、添加或删除过的文件列表。你也可以检查同一文件两个版本的不同之处,以便确切地查看某个特定的修订版本的变化。

特性

WebSVN提供了以下这些特性:

  • 易于使用的界面;
  • 可自定义的模板系统;
  • 彩色文件列表;
  • 过错视图;
  • 日志信息搜索;
  • 支持RSS订阅;

安装

我按以下链接来将Subversion安装到CentOS 7。

  • 如何在CentOS 7上安装Subversion 

1 – 下载websvn到/var/www/html。

  1. cd /var/www/html
  2. wget http://websvn.tigris.org/files/documents/1380/49057/websvn-2.3.3.zip

2 – 解压zip包。

  1. unzip websvn-2.3.3.zip
  2. mv websvn-2.3.3 websvn

3 – 安装php到你的系统。

  1. yum install php

4 – 编辑web svn配置。

  1. cd /var/www/html/websvn/include
  2. cp distconfig.php config.php
  3. vi config.php

  1. // Configure these lines if your commands aren't on your path.
  2. //
  3. $config->setSVNCommandPath('/usr/bin');// e.g. c:\\program files\\subversion\\bin
  4. $config->setDiffPath('/usr/bin');

  1. // For syntax colouring, if option enabled...
  2. $config->setEnscriptPath('/usr/bin');
  3. $config->setSedPath('/bin');

  1. // For delivered tarballs, if option enabled...
  2. $config->setTarPath('/bin');

  1. // For delivered GZIP'd files and tarballs, if option enabled...
  2. $config->setGZipPath('/bin');

  1. //
  2. $config->parentPath('/svn/');

  1. $extEnscript[".pl"]="perl";
  2. $extEnscript[".py"]="python";
  3. $extEnscript[".sql"]="sql";
  4. $extEnscript[".java"]="java";
  5. $extEnscript[".html"]="html";
  6. $extEnscript[".xml"]="html";
  7. $extEnscript[".thtml"]="html";
  8. $extEnscript[".tpl"]="html";
  9. $extEnscript[".sh"]="bash";
  10. ~

保存并退出。

6 – 重新加载apache并启动websvn链接http://ip/websvn。

websvn

一切搞定。

本文永久更新链接地址:

相关内容