This howto describe installation process of SVNManager od Debian, should also work on Ubuntu. Howto based on http://redimp.de/(…)SVNManager.html.
First step is installation of apache2 and php5, it won’t be describe here.
Next step is installation of necessary packages
aptitude install php-pear libapache2-svn subversion
pear install -f -o VersionControl_SVN
pear install -f -o VersionControl_SVN
Setup dav_svn module
vi /etc/apache2/mods-available/dav_svn.conf
Put there:
1 2 3 4 5 6 7 8 9 10 | <location /svn> DAV svn SVNParentPath /var/lib/svn/repos AuthType Basic AuthName "Subversion Repository" AuthUserFile /var/lib/svn/htpasswd Require valid-user # SSLRequireSSL AuthzSVNAccessFile /var/lib/svn/accessfile </location> |
Init repo dirs
mkdir -p /var/lib/svn/repos
touch /var/lib/svn/htaccess
touch /var/lib/svn/htpasswd
touch /var/lib/svn/accessfile
chown -R www-data:www-data /var/lib/svn
touch /var/lib/svn/htaccess
touch /var/lib/svn/htpasswd
touch /var/lib/svn/accessfile
chown -R www-data:www-data /var/lib/svn
Download and setup SVNManager
mysql -u root -p -e"CREATE DATABASE svnmanager; \
GRANT select, insert, update, delete, create, drop, alter on svnmanager.* \
to svnmanager identified by '**password**'; FLUSH PRIVILEGES;"
cd /tmp
wget http://heanet.dl.sourceforge.net/sourceforge/svnmanager/svnmanager-1.04.tar.gz
tar -xvzf svnmanager-*.tar.gz
rm svnmanager-*.tar.gz
mv svnmanager-* svnmanager
mv svnmanager /var/www/
cd /var/www/svnmanager
cp config.php.linux config.php
a2enmod dav_svn
invoke-rc.d apache2 restart
vi config.php
GRANT select, insert, update, delete, create, drop, alter on svnmanager.* \
to svnmanager identified by '**password**'; FLUSH PRIVILEGES;"
cd /tmp
wget http://heanet.dl.sourceforge.net/sourceforge/svnmanager/svnmanager-1.04.tar.gz
tar -xvzf svnmanager-*.tar.gz
rm svnmanager-*.tar.gz
mv svnmanager-* svnmanager
mv svnmanager /var/www/
cd /var/www/svnmanager
cp config.php.linux config.php
a2enmod dav_svn
invoke-rc.d apache2 restart
vi config.php
Now you must setup your config.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <?php //Shell command's $htpassword_cmd = "/usr/bin/htpasswd"; $svn_cmd = "/usr/bin/svn"; $svnadmin_cmd = "/usr/bin/svnadmin"; //Subversion $svn_repos_loc = "/var/lib/svn/repos"; $svn_passwd_file = "/var/lib/svn/htpasswd"; $svn_access_file = "/var/lib/svn/accessfile"; //SMTP Server $smtp_server = "localhost"; //Database $dsn = "mysqli://svnmanager:**password**@localhost/svnmanager"; //Administrator account $admin_name="admin"; $admin_temp_password="admin"; |
THE END! Now you can go to http://localhost/svnmanager and configure your SVN via SVNManager. Notice! Created via SVNManager repo path should look like http://localhost/svn/repo-name-provided-in-svnmanager
There’s some problem in my database, so I need to issue GRANT command in mysql with host definition:
GRANT select, insert, update, delete, create, drop, alter on svnmanager.*
to ‘svnmanager’@'localhost’ identified by ‘**password**’;
Thanks for your tutorial
Hi All,
* I have configured Apache2.2.17 + subversion 1.6.15 + PHP5.3.6 + the pear package which comes with the PHP distribution.. Both Apache and PHP are working fine , when i run phpinfo.php file through localhost it is getting executed.
* when i try this command :
pear install -f -o VersionControl_SVN , it is giving me error like:
No releases available for package “pear.php.net/VersionControl_SVN”
install failed
Please someone help in this..
i wanted to configure SVNManager further please help me in this.
Regards,
Shweta
Hi,
I wrote this post almost two years ago, so probably you should find more recent solution.
Regards,