Right, so my out of the box experience with svnmanager wasn't so hot, but I really needed a web based subversion manager. With all the fun I had setting it up, I thought I'd share my experiences...
NOTE: I'm running an internal server without regular users on the box. If you're concerned about security at all, you'll need to be a bit more careful than I've been here.
OS: Fedora 9
Packages: I installed php, apache, subversion, etc. with yum
I unpacked svnmanager and put it in my www directory, browsed to it with apache, and got the dreaded 'sqlite error: [0: Missing extension for native] in CONNECT...' error. Found out that the Fedora version of php doesn't include the needed sqlite drivers. Googled a bit and found some good info at:
Followed the thread and got the sqlite.so module installed and setup with php. Then my error message changed to:
[2] sqlite_open() [function.sqlite-open]: unable to open database: /www/svnmanager-1.03/svnmanager (@line 138 in file /www/svnmanager-1.03/prado-2.0.3/framework/Data/adodb/drivers/adodb-sqlite.inc.php).
Nice. For whatever reason the sqlite URI isn't following correctly. I change the dsn in my config.php file from:
$dsn = "sqlite://svnmanager/svnmanager.db";
to:
$dsn = "sqlite://svnmanager.db";
Well now the database is created in the svnmanager-1.03 directory, but I'm move it and softlink...
Now I'm getting somewhere. I can log in and even create users...
... but I can't create repositories. It says I can, but I'm only getting empty directories. So I play around in the scripts a bit and find out that when svnadmin is being run as apache, it is trying to read /root/.subversion. Swell... So I set permissions on it such that the apache user can read it. Now I can create repositories. Check.
But I'd also like to dump them. Going to dump I get:
[8] Undefined index: HTTPS (@line 30 in file /www/svnmanager-1.03/svnmanager/RepositoryModule/DumpAnnouncePage.php).
Joy. So I go check out the file svnmanager-1.03/svnmanager/RepositoryModule/DumpAnnouncePage.php and patch the offending line:
if(sizeof($_SERVER['HTTPS'])>0)
to:
if(isset($_SERVER['HTTPS']) && sizeof($_SERVER['HTTPS'])>0)
And now we can dump.
I've got the functionality I care about, so we'll see how things go from here...
Despite the setup problems, props to the svnmanager team for a fairly nice interface.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Right, so my out of the box experience with svnmanager wasn't so hot, but I really needed a web based subversion manager. With all the fun I had setting it up, I thought I'd share my experiences...
NOTE: I'm running an internal server without regular users on the box. If you're concerned about security at all, you'll need to be a bit more careful than I've been here.
OS: Fedora 9
Packages: I installed php, apache, subversion, etc. with yum
I unpacked svnmanager and put it in my www directory, browsed to it with apache, and got the dreaded 'sqlite error: [0: Missing extension for native] in CONNECT...' error. Found out that the Fedora version of php doesn't include the needed sqlite drivers. Googled a bit and found some good info at:
http://fedoraforum.org/forum/showthread.php?t=59802&highlight=php+sqlite
Followed the thread and got the sqlite.so module installed and setup with php. Then my error message changed to:
[2] sqlite_open() [function.sqlite-open]: unable to open database: /www/svnmanager-1.03/svnmanager (@line 138 in file /www/svnmanager-1.03/prado-2.0.3/framework/Data/adodb/drivers/adodb-sqlite.inc.php).
Nice. For whatever reason the sqlite URI isn't following correctly. I change the dsn in my config.php file from:
$dsn = "sqlite://svnmanager/svnmanager.db";
to:
$dsn = "sqlite://svnmanager.db";
Well now the database is created in the svnmanager-1.03 directory, but I'm move it and softlink...
Now I'm getting somewhere. I can log in and even create users...
... but I can't create repositories. It says I can, but I'm only getting empty directories. So I play around in the scripts a bit and find out that when svnadmin is being run as apache, it is trying to read /root/.subversion. Swell... So I set permissions on it such that the apache user can read it. Now I can create repositories. Check.
But I'd also like to dump them. Going to dump I get:
[8] Undefined index: HTTPS (@line 30 in file /www/svnmanager-1.03/svnmanager/RepositoryModule/DumpAnnouncePage.php).
Joy. So I go check out the file svnmanager-1.03/svnmanager/RepositoryModule/DumpAnnouncePage.php and patch the offending line:
if(sizeof($_SERVER['HTTPS'])>0)
to:
if(isset($_SERVER['HTTPS']) && sizeof($_SERVER['HTTPS'])>0)
And now we can dump.
I've got the functionality I care about, so we'll see how things go from here...
Despite the setup problems, props to the svnmanager team for a fairly nice interface.
Thanks for your contribution!
Marijn