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

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: 1

1 2 3 10
    1. […] WiÄ™cej: Install SVN Server on Fedora 13/14, CentOS/Red Hat (RHEL) 5.5/6 […]

      Reply
    2. hi, I installed subversion on fedora 13 following this guide, when i do “svn import -m ‘Initial import’ /tmp/svn-structure-template/ http://localhost/svn/testrepo/” ask me the root password Authentication realm: Subversion repositories
      Password for ‘root’:
      I typed any password and then ask me the username
      Authentication realm: Subversion repositories
      Username:
      I typed testuser2
      Password for ‘testuser2’:
      ask me the password
      I typed the password for testuser2, and send me this message
      svn: Repository moved permanently to ‘http://localhost/svn/testrepo/’; please relocate
      can you helpme

      Reply
      • Hi gb,

        Sounds like some configuration error. Please post your subversion.conf file content. Do you have any other config for subversion or svn path?

        Try to check out your repository on some test directory, like following:

        
        mkdir /tmp/testrepo
        cd /tmp/testrepo
        
        svn co http://localhost/svn/testrepo/ .
        

        Is this working ok?

        Reply
    3. JR thanks for the answer

      this is my subversion.conf

      [myserver]#cat /etc/httpd/conf.d/subversion.conf
      #############
      LoadModule dav_svn_module modules/mod_dav_svn.so
      LoadModule authz_svn_module modules/mod_authz_svn.so

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

      #####################

      i tryed
      mkdir /tmp/testrepo
      cd /tmp/testrepo
      svn co http://localhost/svn/testrepo/ .

      the result still this
      [myserver]#svn co http://localhost/svn/testrepo/ .
      Authentication realm: Subversion repositories
      Password for ‘root’:

      Reply
      • Hi again,

        Do you have

        on your subversion.conf?

        After Password for ‘root’: press return and then insert your username and password, is it working then ok?

        Reply
        • hi
          I found the problem
          I was using /var/www/html/ to create svn dir
          I changed for /var/www/ and it works
          I really appreciate your help

          Reply
          • Really nice hear that you got it working! Excellent!

            Reply
      • put root password and then it will ask you for svn repos username and password

        Reply
    4. hii. my name is deepti and i m a trainee .i m working on Linux and my project is to setup a svn server for my office i understand your guidline but i m not able to connect with my clients will you help me..

      Reply
      • Hi Deepti,

        Are you trying to connect to SVN server from the other office computers?

        Reply
        • hii.thanx’s for reply.No i m not connect to svn server from other office. but i have more problem in svn. in my office there is svn server but i m not able to lock the existing file in server and even if i enable auto-prop=yes in /root/subversion/conf then it only lock php file as a new file.please help me it’s really important for me my deadline is coming near.

          Reply
      • Hi Deepti,
        Plz send me the complete practical of SVN server side and client side both. plz plz

        Reply
    5. great, thanks for the info — very helpful

      Reply
    6. Worked Fine! No modifications on install, just followed the how-to!

      Reply
    7. Hello,

      I have follow your instructions but when i try to execute the svn import:

      svn import -m ‘Initial import’ /tmp/svn-structure-template/ http://localhost/svn/testrepo/
      Reino de autentificación: Subversion repositories
      password ‘root’:
      Reino de autentificación: Subversion repositories
      User: testuser
      password ‘testuser’:
      Reino de autentificación: Subversion repositories
      User: testuser
      password ‘testuser’:
      svn: OPTIONS de ‘http://localhost/svn/testrepo’: authorization failed: Could not authenticate to server: rejected Basic challenge (http://localhost)

      i have also tried:

      mkdir /tmp/testrepo
      cd /tmp/testrepo
      svn co http://localhost/svn/testrepo/ .

      But it is the same…i can do it…

      My config file is:

      LoadModule dav_svn_module modules/mod_dav_svn.so
      LoadModule authz_svn_module modules/mod_authz_svn.so

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

      I dont know why happens….please if you could help me.

      Thanks

      Reply
    8. I try execute chcon -R -t httpd_sys_content_t /var/www/svn/testrepo :

      chcon: can’t apply partial context to unlabeled file `db.lock’
      chcon: can’t apply partial context to unlabeled file `db-logs.lock’
      ….

      Why?

      Reply
      • I am facing the same prob. Dunno wat went wrong?

        Reply
        • Hi Parikshit Tiwari,

          Try following 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/*
          

          Looks like some reason you don’t have user or/and role…is this working for you?

          Reply
          • Hey awsm! it started wokring for me!
            thanx a tonnn!!!

            Reply
      • So, I have the same error….

        Reply
    9. […] Install SVN (Subversion) Server on Fedora 15/14, CentOS/Red Hat (RHEL) 5.6/6 Install SVN (Subversion) Server on Fedora 15/14, CentOS/Red Hat (RHEL) 5.6/6 本篇發表於 open source。將永久鏈結加入書籤。 ← Smart Thread Pool […]

      Reply
    10. Perfect tutorial everything works!
      One thing is missing:
      – before launching http://localhost/svn/testrepo in the browser apache webserver must be started
      /etc/init.d/httpd start

      Thanks for the tutorial!

      Reply
    11. Good guide, I can connect locally, however I cannot connect to the server from a different computer.

      I’ve added rules to the firewall config (and even tried disabling the firewall) however I still can’t reach the server from another system.

      Reply
    12. HI

      I followed above steps, I able to install and configured and able to login using http://php.justfordemo.biz/svn/testrepo URL, but, once I try to commite any file I am getting Couldn’t perform atomic initialization error, please help me

      Thanks
      Jyothi

      Reply
      • Hi jyothi,

        Did you tried just one time or multiple times?

        Could you tell more specific are you using command line or are you using some graphical client?

        Reply
    13. I tried the first initial import and this is what I get:

      svn: access to ‘/svn/wvsrepo’ forbidden

      I am not using a AuthzSVNAccessFile

      Please help.

      Reply
      • Hi ad,

        Could you post output of following commands:

        
        ls -la /path/to/svn/wvsrepo
        
        ls -la /path/to/svn
        
        Reply
    14. Nice one, followed this one,
      But after the “step 5. Create and configure SVN repository” please add the apache restart command. I know you do know this.
      service httpd restart

      I followed this one and had a working SVN repo.. Thanks..

      Reply
      • Hi Aneek,

        I added apache restart thanks! :)

        Reply
        • You are Most welcome JR..
          I always keep following your linux based tutorials and articles…
          Do you have anything about Samba Server.? I have a great interest in it.

          Reply
          • Thanks Aneek! :)

            Nice to hear that you follow my Linux based tutorials and articles! ;)

            I don’t have anything about Samba Server, because I don’t use Samba and I don’t have any Windows machines… :) But if you have some knowledge about Samba you can of course share it with us. :)

            Reply
    15. I have followed your tutorial to the letter however when I navigate to the repository via a web browser it does not prompt me for a password.

      Reply
      • Hi Brian,

        Try to restart apache (as Aneek recommend) with following command:

        
        /etc/init.d/httpd restart
        ## OR ##
        service httpd restart
        

        If it doesn’t help, then please let me know?

        Reply
      • Yes, I have the same problem…

        Reply
1 2 3 10

Leave a Reply to JR 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.

Close