我想在18.04 LTS上安装WebSVN。WebSVN目前似乎已经不受支持了。在Debian拉伸中,需要启用老式的回购。
哪个回购支持Ubuntu18.04的WebSVN,我如何启用该回购?
发布于 2020-03-15 19:07:36
Debian 8和Ubuntu18.04是最后一个将websvn包含在包中的存储库。
幸运的是,websvn仍在维护中,安装起来也不太困难。您只需要带有XML支持的PHP。
首先创建一个apache配置文件/etc/apache2/conf-available/websvn.conf
Alias /websvn /var/www/websvn
DirectoryIndex index.php
Options FollowSymLinks安装带有XML支持的PHP,签出websvn并启用您刚刚创建的apache配置:
sudo apt-get install php php-xml
cd /var/www
svn checkout https://github.com/websvnphp/websvn.git/tags/2.5/ websvn
sudo a2enconf websvn
sudo systemctl restart apache2将浏览器指向websvn目录。应该告诉您创建配置文件/var/www/websvn/include/config.php
我在我的config.php中添加了以下行
$config->setEnscriptPath('/usr/bin');
$config->setSedPath('/bin');
$config->parentPath('/var/svn-repos');
$config->useEnscript();这将告诉websvn在哪里可以找到sed和enscript,并且我的存储库是从/var/svn-repos/链接的。
我在现有的服务器上安装了websvn,因此可能会有额外的依赖项。如果浏览器收到500错误,请检查/var/log/apache2/error.log。
https://askubuntu.com/questions/1188140
复制相似问题