我正在尝试安装 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');
它会一直告诉我:
请使用 $config->parentPath 或 $config->addRepository 在 include/config.php 中设置存储库。有关详细信息,请参阅安装指南。
我错过了什么吗?