我需要为我的程序创建一个服务器websvn。
我确实在服务器和工作中安装了websvn,但向我展示了这条消息。
Please set up a repository in include/config.php using $config->parentPath or $config->addRepository. See the installation guide for more details.所以我做了一个nano include/config.php
parentPath("/var/lib/svn");
$config->addRepository("FirstRepo", "file:///var/lib/svn/FirstRepo");
$config->setEnscriptPath("/usr/bin");
$config->setSedPath("/bin");
$config->useEnscript();
?>然后是一个sudo /etc/init.d/apache2 restart
现在,如果我使用URL http://192.168.x.xxx/websvn/,站点将变为空白,视图也会丢失。
这里是我的repos /var/lib/svn的路径,在其中我必须文件夹FirstRepo
不知道我是不是做错了什么。
apt list php-xml
Listing... Done
php-xml/xenial-updates,xenial-updates 1:7.0+35ubuntu6.1 all
N: There is 1 additional version. Please use the '-a' switch to see itls -la /var/lib/svn/FirstRepo
drwxrwxr-x 6 root root 4096 Aug 20 10:52 .
drwxrwxr-x 5 www-data root 4096 Aug 20 10:52 ..
drwxrwxr-x 2 root root 4096 Aug 20 10:52 conf
drwxrwsr-x 6 root root 4096 Aug 20 10:52 db
-rwxrwxr-x 1 root root 2 Aug 20 10:52 format
drwxrwxr-x 2 root root 4096 Aug 20 10:52 hooks
drwxrwxr-x 2 root root 4096 Aug 20 10:52 locks
-rwxrwxr-x 1 root root 246 Aug 20 10:52 README.txt发布于 2018-08-20 14:41:43
安装php-xml包:
sudo apt install php-xml然后重新启动apache,并检查是否一切正常。
https://unix.stackexchange.com/questions/463658
复制相似问题