Bo's blog

Saturday, July 14, 2007

install svn and trac using yum

Config svn:

  1. Installed Subversion:
    $ yum install subversion
  2. Installed mod_dav_svn:
    $ yum install mod_dav_svn
  3. Create a new project environment. An environment is basically a directory that contains a human-readable configuration file and various other files and directories. Create a subversion repository if you don't already have one, for example in /srv/svn:
    $ sudo mkdir -p /srv/svn
    $ sudo svnadmin create --fs-type fsfs /srv/svn
  4. Edit /etc/httpd/conf.d/subversion.conf

    DAV svn
    SVNPath /srv/svn

    # how to authenticate a user
    AuthType Basic
    AuthName "Subversion repository"
    AuthUserFile /srv/conf/userfile.htpasswd

    # only authenticated users may access the repository
    Require valid-user
  5. restert httpd server
    $ service httpd restart
  6. Updated permissions on my new SVN repository:
    $ sudo chown -R apache /srv/svn

Config trac:

Labels:

0 Comments:

Post a Comment

<< Home