dongxi1320 2016-06-21 12:50
浏览 210

WebSVN无法识别存储库

I am trying to install WebSVN. Everything worked fine so far but my repositories are not recognized.

Inside my user folder /home/svn (svn is the user name) I have several repositories and I want all of them to appear in WebSVN.

This is my config.php:

<?php

$config->setSVNCommandPath('/usr/bin');
$config->setDiffPath('/usr/bin');
$config->setEnscriptPath('/usr/bin');
$config->setSedPath('/bin');
$config->setTarPath('/bin');
$config->setGZipPath('/bin');
$config->parentPath('/home/svn');
$config->addTemplatePath($locwebsvnreal.'/templates/calm/');
$config->addTemplatePath($locwebsvnreal.'/templates/BlueGrey/');
$config->addTemplatePath($locwebsvnreal.'/templates/Elegant/');
$config->addInlineMimeType('text/plain');
$config->setMinDownloadLevel(2);
$config->useGeshi();

set_time_limit(0);
$config->expandTabsBy(8);

$extEnscript[".pl"] = "perl";
$extEnscript[".py"] = "python";
$extEnscript[".sql"] = "sql";
$extEnscript[".java"] = "java";
$extEnscript[".html"] = "html";
$extEnscript[".xml"] = "html";
$extEnscript[".thtml"] = "html";
$extEnscript[".tpl"] = "html";
$extEnscript[".sh"] = "bash";

If I open WebSVN in a browser, it shows an HTTP ERROR 500. If I change the line $config->parentPath('/home/svn'); to $config->parentPath('/home'); it keeps telling me:

Please set up a repository in include/config.php using $config->parentPath or $config->addRepository. See the installation guide for more details.

Am I missing something?

  • 写回答

3条回答 默认 最新

  • douhuan1901 2016-06-21 20:21
    关注

    In addition to telling WebSVN where to find your repositories with parentPath (which just lets you shorten later paths), you have to create one entry (using addRepository) per repository that you want to display on the WebSVN home page.

    The addRepository() function takes two arguments. The first is the visible name, the second is the path to the SVN repository.

    Reference link: Use Subversion, Apache, and WebSVN to view your repositories

    (It's been a while since I setup WebSVN, but I did have to list each one individually.)

    评论

报告相同问题?

悬赏问题

  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题