Pages

Monday, September 07, 2009

Apache2+SVN with MySQL authentication

apt-get update
apt-get install subversion
apt-get install libapache2-svn

svnadmin create /var/svn

a2enmod dav
a2enmod dav_svn

vim /etc/apache2/mods-enabled/dav_svn.conf


uncomment the following
location /svn
DAV svn
SVNParentPath /var/svn
location

save and close the file after changing the above

reload apache2 ## /etc/init.d/apache reload

### Mysql auth

add a user svn to mysql
mysql
create user 'svn'@'localhost' identified by 'svn';
grant select on postfix.user to 'svn'@'localhost';


apt-get install libapache2-mod-auth-mysql
a2enmod auth_mysql

Then create a /etc/apache2/mods-enabled/auth_mysql.conf with the following line

Auth_MySQL_Info localhost

where is the credentials for accessing the database.

AuthMySQL_Authoritative on
AuthMySQL_DB
AuthMySQL_Password_Table users
AuthMySQL_Username_Field login
AuthMySQL_Password_Field pass
AuthMySQL_Empty_Passwords off
AuthMySQL_Encryption_Types Crypt_MD5 ## PHP_MD5 worked with my installation


######enabling ssl
http://edipage.wordpress.com/2006/06/11/apache2-and-svn/
http://www.reviewingit.com/index.php/content/view/62/2/

>>>>> Still my setup is not working.. donot know why yet ..

No comments:

Post a Comment