Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/285.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php WebVN不';无法识别存储库_Php_Svn_Repository_Websvn - Fatal编程技术网

Php WebVN不';无法识别存储库

Php WebVN不';无法识别存储库,php,svn,repository,websvn,Php,Svn,Repository,Websvn,我正在尝试安装WebVN。到目前为止,一切正常,但我的存储库未被识别 在我的用户文件夹/home/svn(svn是用户名)中,我有几个存储库,我希望它们都出现在WebVN中 这是我的config.php: <?php $config->setSVNCommandPath('/usr/bin'); $config->setDiffPath('/usr/bin'); $config->setEnscriptPath('/usr/bin'); $config->setS

我正在尝试安装WebVN。到目前为止,一切正常,但我的存储库未被识别

在我的用户文件夹
/home/svn
svn
是用户名)中,我有几个存储库,我希望它们都出现在WebVN中

这是我的
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";
父路径('/home/svn')到
$config->parentPath('/home')它一直在告诉我:

请在include/config.php中使用 $config->parentPath或$config->addRepository。请参阅安装 有关更多详细信息,请参阅指南


我遗漏了什么吗?

除了告诉WebVN在哪里可以找到带有parentPath的存储库(它只是让您缩短以后的路径),您还必须为每个存储库创建一个条目(使用addRepository),以显示在WebVN主页上

addRepository()函数接受两个参数。第一个是可见名称,第二个是SVN存储库的路径

参考链接:


(我已经有一段时间没有设置WebVN了,但我确实必须单独列出每一个。)。浏览Apache错误日志文件时,我遇到了一个关于缺少xml函数的有趣信息(使用Ubuntu 16.04 LTS,默认的php安装,目前是7.0)。这可以通过使用安装php xml轻松解决

apt get install php xml-y

希望这也是你的情况。

然后 在
config.php

$config->addRepository("FirstRepo", "file:///home/svn/FirstRepo");
并安装php xml

$ sudo apt install -y php-xml 
重新启动apache2服务器

$ sudo apache2 restart
$ sudo apache2 restart