Skip to main content Skip to complementary content

Installing and configuring Apache Subversion with modules on Redhat

Procedure

  1. As user apache or as root, install the httpd, mod_dav_svn and subversion packages.
    # yum install httpd mod_dav_svn subversion
  2. Create an svn directory.
    # mkdir /var/www/svn
  3. Create an SVN repository.
    # svnadmin create /var/www/svn/repository
  4. Create a user name and a password.
    # htpasswd -cmb /var/www/svn/passwd admin@company.com admin
  5. Change the owner of the directory to apache.
    # chown -R apache.apache /var/www/svn
  6. Open the SVN configuration file.
    # vim /etc/httpd/conf.d/subversion.conf
    On CentOS 7, the name of the configuration file is 10-subversion.conf. The configuration file is located under the /etc/httpd/conf.modules.d folder
  7. Update is as follows:
    <Location /svn>
    DAV svn
    SVNPath /var/www/svn/repository
    Require valid-user
    AuthType basic
    AuthName "Subversion"
    AuthUserFile /var/www/svn/passwd
    </Location>
  8. Restart httpd.
    # /etc/init.d/httpd start
  9. If you have SELinux (Security-Enhanced Linux) enabled on your system, see Talend Help Center (https://help.talend.com).

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!