【发布时间】:2016-06-21 12:50:00
【问题描述】:
我正在尝试安装 WebSVN。到目前为止一切正常,但我的存储库无法识别。
在我的用户文件夹/home/svn(svn 是用户名)中,我有几个存储库,我希望它们都出现在 WebSVN 中。
这是我的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";
如果我在浏览器中打开 WebSVN,它会显示 HTTP ERROR 500。如果我将$config->parentPath('/home/svn'); 更改为$config->parentPath('/home');,它会一直告诉我:
请在 include/config.php 中使用 $config->parentPath 或 $config->addRepository。看安装 指南了解更多详情。
我错过了什么吗?
【问题讨论】:
标签: php svn repository websvn