You are not logged in. Click here to log in.

codebeamer Application Lifecycle Management (ALM)

Search In Project

Search inClear

Tags:  not added yet

Configuring Apache for Subversion

Accessing Subversion Repositories via Apache has several advantages: neither extra port for external access nor SSH key setup is required. This page describes how to setup Apache to Serve Subversion Repositories.

codeBeamer must be installed and started before this description can be used. mod_evasive apache module must be disabled (if enabled) to ensure that remote-api and webdav work properly.


Please choose the 32 bits version of all software mentioned below even when running 64 bits Windows

This description assumes that codeBeamer has been installed into



  • Download Apache 2.2.17 from the location below or from a mirror:
  • Install Apache to the default location (
    C:\Program Files\Apache Software Foundation
    ) and take Typical Installation.
  • Edit the Apache configuration:

Click on Start->All Programs->Apache HTTP Server 2.2->Configure Apache Server->Edit the Apache


Configuration File!

  • Append the lines of
    to the end of Apache
  • Copy
    C:\Program Files\Apache Software Foundation\Apache2.2\modules
  • Add
    to your
    Control Panel > System > Advanced
  • Test configuration:

Click on Start->All Progeams->Apache HTTP Server 2.2->Configure Apache Server->Test Configuration

  • If everything's fine restart Apache:

Click on Start->All Programs->Apache HTTP Server 2.2->Configure Apache Server->Control Apache Server->Restart


It is important that codeBeamer operating system user and apache belong to the same GID!


This description assumes that codeBeamer has been installed into



  • First you have to install Apache HTTP Server using the following command:
    sudo apt-get install apache2
  • Then execute this command:
    sudo apt-get install libapache2-svn

This will install and enable the modules required in order to user Subversion with Apache.

  • Copy httpd.conf.svn
    sudo cp /home/codebeamer/CB/repository/scmweb/httpd.conf.svn /etc/apache2/mods-available/svn.conf
  • Enable svn support
    sudo ln -s /etc/apache2/mods-available/svn.conf /etc/apache2/mods-enabled/svn.conf
  • Finally test the apache configuration:
    sudo apache2ctl configtest

If everything's fine you can restart Apache:

sudo /etc/init.d/apache2 restart


  • First you have to install Apache HTTP Server and the required moduled:
    sudo yum install httpd subversion mod_dav_svn
  • Copy
  • Finally test the apache configuration:
    apachectl configtest

If everything's fine you can restart Apache:

sudo /etc/init.d/httpd restart


  • Install subversion and subversions' apache2 modules using this command:
    sudo zypper install subversion subversion-server subversion-tools
    svn --version
  • Copy
  • Edit the newly copied /etc/apache2/conf.d/httpd.conf.svn file and remove all "LoadModule" statements, for example the final result should be this:
    <Location /svn>
    #       AuthBasicAuthoritative Off #
            DAV svn
            SVNParentPath "/home/codebeamer/CB/repository/svn/"
            #SVNListParentPath on
            AuthzSVNAccessFile "/home/codebeamer/CB/repository/access/acl.svn"
            AuthName "Subversion Repository"
            AuthType Basic
            AuthUserFile "/home/codebeamer/CB/repository/access/.htaccess"
            require valid-user
  • Edit /etc/apache2/httpd.conf file and add this line to the end so the new SVN configuration will be loaded
    Include /etc/apache2/conf.d/httpd.conf.svn
  • Edit
    file and add these modules to APACHE_MODULES line:
    APACHE_MODULES="... dav_svn authz_svn"
  • Restart Apache2 using this command:
    rcapache2 restart
  • Now the SVN checkout and commit should work. You can test this using a checkout command like:
    svn co
Please note the path of the /home/codebeamer/CB/repository/access/acl.svn and .htaccess has been changed in 9.3, it was /home/codebeamer/CB/repository/acl.svn and .htaccess before 9.3

How to checkout from a codeBeamer repository and commit to it

  • Create a new codeBeamer project with a Managed Mercurial Repository and the name of the repository should be svntest. Follow the steps described in Creating Managed Repositories.
  • Create a new issue in the Bugs tracker of the new project. This example assumes that the new issue gets the ID 1000 and the project was created by the account bond that has the password 007.
It is strongly NOT recommended using user/password in URL!
  • On Linux/Unix hg must be in your
    , on Windows add Mercurial to the
    with the command below:
    set PATH="C:\Dokumente und Einstellungen\zk\Eigene Dateien\CB\libexec\svn";%PATH%
  • Checking out from the repository:
    svn checkout http://bond:007@localhost/svn/svntest
  • Adding a new file to the repository
    cd svntest
    echo hello > readme.txt
    svn add readme.txt
  • Committing to a codeBeamer issue
    svn commit -m "#1000 just a commit"
  • Now after refreshing the browser window with issue details and the change set should appear under SCM Commits tab.