Install SVN Server on Fedora 31/30, CentOS/RHEL 8.0/7.7 - Comment Page: 8

This is guide, howto install SVN (Subversion) server on Fedora 31/30/29/28, CentOS 8.0/7.7/6.10, Red Hat (RHEL) 8.0/7.7/6.10. What is SVN (Subversion)? Subversion is a free/open-source version control system. Subversion manages files and directories, and the changes made to them, over time. This allows you to recover older versions of your data, or examine the history of how your data changed. In this regard, many people think of a version control system as a sort of "time machine". [inttf_post_ad1] Install SVN (Subversion) Server on Fedora 31/30/29/28, CentOS 8.0/7.7/6.10, Red Hat (RHEL) 8.0/7.7/6.10 1. Change root user su - ## OR ## sudo -i 2. Install needed...

316 comments on “Install SVN Server on Fedora 31/30, CentOS/RHEL 8.0/7.7 - Comment Page: 8

1 6 7 8 9 10
    1. If step 5 fails with message

      chcon: can't apply partial context to unlabeled file

      do these commands instead

      chcon -h system_u:object_r:httpd_sys_content_t /var/www/svn/testrepo
      chcon -R -h apache:object_r:httpd_sys_content_t /var/www/svn/testrepo/*

    2. I’m not getting add.

      for example:

      [[email protected] repos]$ svn add test.txt
      svn: ‘.’ is not a working copy

      [[email protected] repos]$ svn status
      svn: warning: ‘.’ is not a working copy

      [[email protected] repos]$ svn commit
      svn: ‘/var/www/svn/repos’ is not a working copy


      [[email protected] repos]$ sudo svn co http://localhost/svn/repos/
      [sudo] password for cit:
      A repos/trunk
      A repos/branches
      A repos/tags
      Checked out revision 1.

      follown my file subversion.config:

      LoadModule dav_svn_module modules/
      LoadModule authz_svn_module modules/

      DAV svn
      SVNParentPath /var/www/svn
      SVNPathAuthz off

      Do you can help me?


      • Hi edivaldo,

        You can’t add files or do anything if you have not working copy.

        What happens after checkout, if you run:

        svn status
    3. I am following this step but Last IMPORT command Not relocalted

      [email protected]# svn import -m ‘Initial import’ /tmp/svn-structure-template/
      Authentication realm: Subversion repositories
      Password for ‘root’:
      Authentication realm: Subversion repositories
      Username: sk
      Password for ‘sk’:
      svn: Repository moved permanently to ‘’; please relocate
      [[email protected] ~]#

      Can’t import “trunk,branches,tags”
      pls help any one

      • Hi Shaikh Zahid Hossain,

        Could you post your config files example to

        And output of following commands here:

        ls -ladZ /var/www/svn
        ls -laZ /var/www/svn

        I assume here, that you have used /var/www/svn location for repos.

    4. Hi JR,

      First of all I wann thank you for your useful blog.

      I have same issue as Max.

      I have tried below two commnads

      1. chcon -R -t httpd_sys_content_t /var/www/svn/repository

      Above commnad went through fine

      2. chcon -R -t httpd_sys_rw_content_t /var/www/svn/repository

      This Command Gave me Error:

      chcon: failed to change context of /var/www/svn/repository to system_u:object_r:httpd_sys_rw_content_t: Invalid argument
      chcon: failed to change context of /var/www/svn/repository/format to system_u:object_r:httpd_sys_rw_content_t: Invalid argument

      Then I tried the commands as suggested to MAX

      1. chcon -h system_u:object_r:httpd_sys_rw_content_t /var/www/svn/repository

      Error: chcon -h system_u:object_r:httpd_sys_rw_content_t /var/www/svn/repository
      chcon: failed to change context of /var/www/svn/repository to system_u:object_r:httpd_sys_rw_content_t: Invalid argument

      2. chcon -R -h apache:object_r:httpd_sys_rw_content_t /var/www/svn/repository/*

      Error: chcon -R -h apache:object_r:httpd_sys_rw_content_t /var/www/svn/repository/*
      chcon: failed to change context of /var/www/svn/repository/conf to apache:object_r:httpd_sys_rw_content_t: Invalid argument
      chcon: failed to change context of /var/www/svn/repository/conf/authz to apache:object_r:httpd_sys_rw_content_t: Invalid argument

      My Machine details:

      uname -a
      Linux adc6140502 2.6.18- #1 SMP Wed Sep 2 22:48:20 EDT 2009 i686 i686 i386 GNU/Linux

      lsb_release -a
      LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
      Distributor ID: EnterpriseEnterpriseServer
      Description: Enterprise Linux Enterprise Linux Server release 5.4 (Carthage)
      Release: 5.4
      Codename: Carthage

      rpm -qa coreutils\* selinux\* |sort

      Please help

    5. how to log out in my account

    6. First off thanks for the directions. I’m up and running but having an issue on commit:
      In my checked out dir, I first did an ADD for a bunch of new files and directories. svn status reports ok that files are ready to add. Upon attempting my first commit I get:

      svn: Commit failed (details follow):
      svn: Server sent unexpected return value (503 Service Temporarily Unavailable) in response to PROPFIND request…

      when I did all of your steps I did as my own user but sudo’ed to root.
      I did checkout, add, and attempting commit as my own user ‘steve’. All files and directories in my checked out dir are permissioned for me.

      Been googling around on this error and can’t find a solutions for my case. Please help.

      • Hi Steve,

        When you checkout repo example over http, then you can use repo as any user. Did you added your user and password AuthUserFile? If you use exactly this guide then you have to do commits as testuser and use testuser password.

        Could you also check what errors you see on httpd access and erros logs?

    7. I think this one is important too, to start your SVN services

      svnserve -d -r /var/www/svn

    8. Thanks People for this useful blog. I could install SVN in my Linux server successfully but when I try to launch it through console (http://localhost/svn/testrepo) I get login screen but the credentials fail. I gave testuser as the login, similar to the example given above. Sucessful Users, Please advice.

      • Hi Vasu,

        Did you used exactly same password that you used on step 4.?

        You could of course create some other user, set password and try again.

    9. Thanks for replies.. Yes, I used the same password, even i tried by creating another and using it. It didnt work..

      I came across a file in net /etc/svn-access-control . Should we do any changes into svn-access-control file for making the credentials work..?

      • Excellent, just want to first make sure that there wasn’t any mistake on users or passwords…

        So do you have enabled SVN Access Control?

        If yes, could you then post content of /etc/httpd/conf.d/subversion.conf and /etc/svn-access-control files?

    10. How can we enable SVN Access Control..? Please find below /etc/svn-access-control File for your reference.

      testgroup = testuser1, testuser2
      testgroup2 = testuser3, testuser4, testuser5
      testgroup3 = testuser6, testuser7

      * = r
      @testgroup = rw
      testuser4 = rw

      @testgroup2 = rw
      testuser6 = rw

      @testgroup3 = rw
      testuser5 = rw

      @testgroup3 = r
      testuser5 = rw

    11. Also please let me know the purpose of authz and passwd files under /var/www/svn/testrepo/conf

      It contains Username and passwords.. Do we need to enter into it.?

      • Hi Vasu,

        Could you post content of following files /etc/httpd/conf.d/subversion.conf and testrepo/conf/svnserve.conf, example to

        Normally it’s better test installation without access control to make sure, where the problem is. If basic setup is not working, then it’s wise to try fix it first without any additional configurations.

    12. Good Morning..:)
      Please find content of /etc/httpd/conf.d/subversion.conf below

      LoadModule dav_svn_module modules/
      LoadModule authz_svn_module modules/

      DAV svn
      SVNParentPath /var/www/svn
      AuthType Basic
      AuthName “Subversion repositories”
      AuthUserFile /etc/svn-auth-users
      Require valid-user

      testrepo/conf/svnserve.conf Content is
      anon-access = none
      autzh-db = authz
      anon-access = read
      auth-access = write
      password-db = passwd
      authz-db = authz

      I also want to know from which file the credentials are loaded while we login…..

    13. People, the issue is resolved by changed two files like below:

      /etc/svn-access-control data:

      testgroup = testuser,testuser1,testuser2,testuser3,testuser4

      * = rw
      @testgroup = rw

      @testgroup = rw

      @testgroup = rw

      @testgroup = rw

      @testgroup = rw

      Type the below commands to add Users:

      htpasswd -cm /etc/svn-auth-users testuser2
      New Password:
      Retype Password:

      This encrypts and stores password and username at /etc/svn-auth-users file

    14. mkdir /var/www/svn- which path we need to create

      • Hi kaku,

        If you are following exactly this guide, then you need to create /var/www/svn directory.

    15. Before starting the installation, I would like to know what are the prerequisites?

      I use Fedora desktop to write C code. I would like to use svn for my version management. Until now, I only downloaded compilers and editors, and some Dropbox links that I use for backup. What I would very much like to do is have svn working on my local network (3 systems).

      Please advise, for single or network, to host svn, what are the prerequisites?

      • Hi Leslie,

        Do you mean system requirements to host svn?

        If you could run Apache it’s almost enough, but if you have very big repositories or thousands of users, then you need of course more processing power and RAM. So local network svn for 3 systems just need machine which could run Apache, if you have reasonable size repositories.

1 6 7 8 9 10

Leave a Reply to edivaldo Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.