Install SVN Server on Fedora 27/26, CentOS/RHEL 7.4/6.9 - Comment Page: 6

This is guide, howto install SVN (Subversion) server on Fedora 27/26/25/24/23, CentOS 7.4/6.9, Red Hat (RHEL) 7.4/6.9. 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 27/26/25/24/23, CentOS 7.4/6.9, Red Hat (RHEL) 7.4/6.9 1. Change root user su - ## OR ## sudo -i 2. Install needed packages...

314 comments on “Install SVN Server on Fedora 27/26, CentOS/RHEL 7.4/6.9 - Comment Page: 6

1 4 5 6 7 8 10
    1. Sorry if I pasted too much, forgot to use a third party site. :D

      Reply
    2. it’s give an error :
      HTTP Status 404 – /svn/testpro/
      type Status report

      message /svn/testpro/

      description The requested resource (/svn/testpro/) is not available.
      Apache Tomcat/7.0.12

      Reply
      • Hi prashansa kumari,

        What you try to do? Could you import or commit?

        Could you also post output of following commands:

        
        uname -a
        
        lsb_release -a
        
        Reply
    3. m not getting the access to repository

      its telling me (‘.’ is not a working copy) what does that implies ??

      Reply
      • Hi dp,

        Could tell more specific what you try to do?

        Reply
    4. well m using fedora 12 n m trying to install svn so tht my co worker can work on the project properly

      i installed as said above but wen m doing the
      step 5 i.e.
      Create and configure SVN repository

      these two command is not working

      chcon -R -t httpd_sys_content_t /var/www/svn/testrepo

      ## Following enables commits over http ##
      chcon -R -t httpd_sys_rw_content_t /var/www/svn/testrepo

      as it is showning me “chcon: can’t apply partial context to unlabeled file”

      Reply
      • Hi dp,

        Try following instead:

        
        chcon -R -t apache:object_r:httpd_sys_rw_content_t /var/www/svn/testrepo
        
        Reply
        • Now for a fresh installation when I’m trying to run your command or previous one,it’s throwing :
          chcon: failed to set type security context component to `apache:object_r:httpd_sys_rw_content_t’: Invalid argument

          plz help

          Reply
          • well,it run,after disabling SELinux.but now a new issue:
            svn : couldn’t perform atomic initialization

            while trying to import a file or checking out the repository.

            Reply
            • Do you try to use SVN directly from command line?

              Reply
    5. well i did all possible combination ….

      still getting the error svn: could not perform atomic initialization

      meanwhile i updated SQlite

      yum update sqlite

      n its running fine
      m all set to go now thnx for ur support n time

      @JR wud you like to gv me your email id jst in case future i need ur help for linux related issues…

      Reply
    6. Thanks for your articles, they are wonderful

      Reply
    7. I am stuck with svn installation can any body help

      Reply
      • Hi Ajith,

        Could you tell more specific about your problem?

        Reply
    8. Add a soft link to the svn area to make it accessible by the port 80 http service:

      ln -s /var/www/svn /var/www/html/svn

      Reply
    9. I have setup svn successfully.

      But during initial Import I’m getting the error :
      ——————————————————–
      svn : Repository moved permanently to ‘http://localhost/svn/xxxxxx/’; please relocate
      ——————————————————–

      my svn location is -> /var/www/svn

      my subversion.conf settings 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 have virtual host environment.
      —————————————————-

      ServerName svn
      DocumentRoot /var/www/svn/

      —————————————————-

      Reply
      • Hi ac,

        Could you your full config files to http://pastebin.com or here inside following tags:
        <pre lang=”bash”>content</pre>

        Reply
        • please find the configurations as below:

          /etc/httpd/conf.d/sunversion.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

          virtualhost – /etc/httpd/conf/virtualhost.conf

          ServerName svn
          DocumentRoot /var/www/svn/

          Reply
          • Hi ac,

            Location tags are missing.

            So could you post again same configs to http://pastebin.com or here inside following tags:
            <pre lang=”bash”>config</pre>

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

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

              Reply
                • Hi ac,

                  What if you try change your virtual host config:

                  
                  DocumentRoot /var/www/svn
                  

                  And restart your web server? Does it make any difference?

                  Reply
      • This may seem like a silly question, but did you create the repo?

        Reply
    10. very much similar to a git-http-backend setup. good simple intro, thanks!

      Reply
    11. How to adding files in testrepo???

      Reply
    12. how to change path /tmp/svn-structure-template/….

      Reply
      • Hi Fernando,

        You can add files simple using “svn add” command, following is full example (howto create some directory, checkout, create file, add it to svn, check status and commit):

        
        mkdir /home/fernando/testrepo
        
        cd /home/fernando/testrepo
        
        svn co http://localhost/svn/testrepo/trunk .
        
        echo "Test content" > test1.txt
        
        svn add test1.txt
        
        svn status
        
        svn commit
        
        Reply
    13. Hi,
      Thanks for the useful site. Could anyone clarify my doubt. I installed the SVN successfully as per the above method and when i want to access the path it should always ask for the user id and passwrd. Now it is only one time it is asking. Any suggestion please.

      Reply
      • try clearing your browser and/or windows cache

        Reply
    14. the “chcon” section of commands refers to SELINUX permissive states, you can skip that is SELINUX is disabled or not installed at all.
      #sestatus command will show you one of its 3 states if installed.

      Reply
      • Hi ck,

        Very good point, you are totally right that chcon commands it’s not needed if you have SELinux disabled or not installed at all. I will update this guide too, thank you for this.

        Reply
1 4 5 6 7 8 10

Leave a Reply

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

Close