Search:

Dream

Server

Info

edit SideBar

Server / Svn

SVN

sudo emacs /etc/httpd/conf.d/subversion.conf edit the Apache configuration file that allows Subversion to pass through
Uncomment the <Location /repos> section at the bottom of the file, EXCEPT SSLRequiresSSL, as that is only needed for accessing svn over https.
<Location /svn>#change /repos to /svn
   DAV svn
   SVNParentPath /var/www/svn

   # 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"
      AuthUserFile /etc/svn-auth-conf #change to /etc/svn-auth-conf, a htaccess file created by htpasswd (see below)
      Require valid-user
   </LimitExcept>
</Location>

To create the svn-auth-conf file, which contains usernames and hashes of passwords for everyone who has access to the repository, use the following command.
htpasswd -cs /etc/svn-auth-conf first-user creates a htaccess file at /etc/svn-auth-conf, hashing passwords with SHA, adding the designated user
For additional users, use the following command:
htpasswd -s /etc/svn-auth-conf subsequent-user adds a user to the htaccess file at /etc/svn-auth-conf, hashing the password with SHA

Follow the instructions in the comments above this section to create a new svn project. (This example makes a repository named 'stuff'.)

  1. cd /var/www/svn
  2. svnadmin create stuff
  3. chown -R apache:apache stuff
  4. chcon -R -t httpd_sys_content_t stuff

We use the Tortoise client to shared files


Page last modified on June 12, 2013, at 01:03 PM