subversion walkthrough

hi folks,

i’m completely new to opensuse. now a friend and i got us a “virtual server”. we installed java, and apache and a mysql db and finally we wanted some svn server…

now before you annoyedly send me some links,(yeah i also know that “google” ;)) i had several problems with too complicated -because too detailed…(for a person with my linux-intelligence==stupid;)-walkthroughs. i wanna install it via putty on a remote vserver to get a svnserver running so that i can use the eclipse svn plugin…

hoping for help,

cu bummelch

Hi,

I wrote a very short setup instruction a while ago Svn Server? - openSUSE Forums

try this and when something is unclear or doesn’t work then ask back :wink:

hope this helps

hi, i like your walkthrough.
i just installed apache2: yast2 -i apache2. great success :wink:
now there is a problem creating the password file:

“sudo htpasswd -mc /srv/svn/user_access/passwdfile myeclipseuser” is what i type, i didn’t forget mkdir before that and the dirs exist!

says:
“sudo: htpasswd: command not found”

doesn’t work without sudo either… so what can i do?

Try htpasswd2.

that was it. thanx :smiley:

but stop, sorry i got another problem …

apache won’t start and module isn’t installed?!? :

I typed: “service apache2 start”, console says:

Module “mod_dav_svn” is not installed, ignoring.
Check the APACHE_MODULES setting in /etc/sysconfig/apache2.
Starting httpd2 (prefork) httpd2-prefork: Syntax error on line 180 of /etc/apach e2/httpd.conf: Syntax error on line 102 of /etc/apache2/default-server.conf: Syn tax error on line 1 of /etc/apache2/conf.d/subversion.conf: Expected </IfModule> before end of configuration

The command line was:
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL

what now?

oh maybe you’ll be interested in knowing that i had to create the file “/etc/apache2/config.d/subversion.conf”

i used the sample file from your link:

<IfModule mod_dav_svn.c>
<Location /repos> #or any other
** DAV svn
** # pfad zum subversion verzeichnis (absolut)
** SVNParentPath /srv/svn/repos/ #or any other

** # Limit write permission to list of valid users.
** <LimitExcept GET PROPFIND OPTIONS REPORT>
******# Require SSL connection for password protection.
******# SSLRequireSSL

******AuthType Basic
******AuthName "Authorization Realm"
******# path to password file
******AuthUserFile /srv/svn/user_access/passwdfile
******Require valid-user
** </LimitExcept>
</Location>

Hi,

during forum conversions there get some wrong chars in the file. It should look like this:


<IfModule mod_dav_svn.c>
<Location /repos>
   DAV svn
   # path to subversion repository directory (absolute)
   SVNParentPath /srv/svn/html/

   # Limit write permission to list of valid users.
   <LimitExcept GET PROPFIND OPTIONS REPORT>
      # Require SSL connection for password protection.
      # SSLRequireSSL

      AuthType Basic
      AuthName "Authorization Realm"
      # path to password file
      AuthUserFile /srv/svn/user_access/myproject_passwdfile
      Require valid-user
   </LimitExcept>
</Location>
</IfModule>

and of course the closing IfModule was missing :shame:

hope this helps