I am trying to install WebSVN. Everything worked fine so far but my repositories are not recognized.
Inside my user folder /home/svn
(svn
is the user name) I have several repositories and I want all of them to appear in WebSVN.
This is my 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";
If I open WebSVN in a browser, it shows an HTTP ERROR 500
. If I change the line $config->parentPath('/home/svn');
to $config->parentPath('/home');
it keeps telling me:
Please set up a repository in include/config.php using $config->parentPath or $config->addRepository. See the installation guide for more details.
Am I missing something?
In addition to telling WebSVN where to find your repositories with parentPath (which just lets you shorten later paths), you have to create one entry (using addRepository) per repository that you want to display on the WebSVN home page.
The addRepository() function takes two arguments. The first is the visible name, the second is the path to the SVN repository.
Reference link: Use Subversion, Apache, and WebSVN to view your repositories
(It's been a while since I setup WebSVN, but I did have to list each one individually.)