我正在尝试安装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中设置一个存储库。有关详细信息,请参阅安装指南。
我是不是遗漏了什么?
发布于 2017-03-14 12:07:38
随着事情的发展,我也一直在经历这个问题。在浏览Apache错误日志文件时,我遇到了一个关于缺少xml函数的有趣点(使用Ubuntu16.04LTS,它是默认的php安装,目前是7.0 )。通过将php-xml安装到
apt-get install php-xml -y
希望这也是你的案子。
发布于 2016-06-21 20:21:35
除了告诉WebSVN在哪里使用parentPath找到存储库(这只允许您缩短以后的路径)之外,您还必须创建一个要在WebSVN主页上显示的存储库条目(使用addRepository)。
addRepository()函数接受两个参数。第一个是可见名称,第二个是SVN存储库的路径。
参考链接:使用Subversion、Apache和WebSVN查看存储库
(我已经有一段时间没有安装WebSVN了,但我必须分别列出每一个。)
发布于 2017-03-27 14:36:29
$ svnadmin create --fs-type fsfs /home/svn/FirstRepo然后在config.php中添加一行第一个存储库,如下所示
$config->addRepository("FirstRepo", "file:///home/svn/FirstRepo");并安装php。
$ sudo apt install -y php-xml 重新启动apache2服务器。
$ sudo apache2 restarthttps://stackoverflow.com/questions/37944946
复制相似问题