Installing and configuring an Apache Subversion (SVN) server

Talend Data Management Platform Installation Guide for Linux

EnrichVersion
6.2
EnrichProdName
Talend Data Management Platform
task
Installation and Upgrade

This procedure describes how to install and configure an Apache Subversion (SVN) server in order to store all your project data (Jobs, Database connections, Routines, Joblets, etc.) in the shared Repository of the Talend Studio.

In the following instructions, lines starting with "#" mean that they must be executed as root. A command line starting with "$" means that it must be executed as standard user.

There are three different methods to install Apache Subversion on Linux:

Installing and configuring Apache Subversion on Linux Ubuntu

  1. Install the subversion, apache2 and libapache2-svn packages.

    # apt-get install subversion apache2 libapache2-svn
  2. Create an svn directory, at the root of your system for example.

    # mkdir /svn
  3. Change the owner of the directory to the webserver user, www-data by default.

    # chown www-data:www-data /svn
  4. Switch to www-data user.

    # su - www-data
  5. Create a new SVN repository, my_repo for example.

    $ svnadmin create /svn/my_repo
  6. Create a user and a password.

    $ htpasswd -cmb /svn/passwd talend_admin secretpassword
  7. Open the SVN configuration file.

    # vi /etc/apache2/mods-enabled/dav_svn.conf
  8. Update it as follows:

    <Location /my_repo>
    DAV svn
    SVNPath /svn/my_repo
    AuthUserFile /svn/passwd
    Require valid-user
    AuthType basic
    AuthName "Subversion"
    </Location>
  9. Restart Apache Subversion.

    # /etc/init.d/apache2 restart
  10. If you have Security-Enhanced Linux (SELinux) enabled on your system, follow the procedure described on this page.

Installing and configuring Apache Subversion on Linux Redhat

  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 username 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
  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 Security-Enhanced Linux (SELinux) enabled on your system, follow the procedure described on this page.