Install and Configure Apache Subversion (SVN) on CentOS 7

19 Responses

  1. jdros says:

    Nice article with well-explained procedure. BUT.
    The real tricky part for the source-control tools is the authentication. Especially if/when you want to open-up your server to the public.

    Obviously you (really) need to avoid storing your password unencrypted!

    The latest trend is to use SSH-keys instead of username/password. Is it possible with SVN?

  2. Josef Chmel says:

    Directive Alias /svn /var/www/svn causes “svn: E195019: Redirect cycle detected for URL ‘http://….” error and you are unable to do checkout for example! Problem detected on Centos 7 , Server version: Apache/2.4.6 (CentOS), svn version 1.7.14

    # vi /etc/httpd/conf.modules.d/10-subversion.conf
    Alias /svn /var/www/svn

    Commenting out # Alias /svn /home/testsvn solves this problem – after a few hours of googling and pounding my head against the wall.

  3. David says:

    Thank you Josef !! You save me for a lot of time !!

  4. Bernat says:

    Hello, I am following the tutorial and I think I’ve got it all right. But now I do not interpret php files, if I agree to index.php is downloaded to my computer, it seems that does not recognize the php, but if I access the HTML if it looks good.
    Do you know if I have to set something else to see the php?
    Thank you !!

  5. iis says:

    very nice tutorial but only one thing is in step 8 when i try to import i am getting a error E205000:Invalid URL…. please help me

    • Pradeep Kumar says:

      Can you give me the full command which you are trying to run to import sample project. In my Case i am using file

  6. Harvey says:

    The result of: svn import -m “First SVN Repo” /mnt/linuxproject
    svn import -m “First SVN Repo” –username MYUSER–password MYPASSWORD /mnt/linuxproject
    results in this console output:
    svn: E205000: Try ‘svn help’ for more info
    svn: E205000: Invalid URL ‘/mnt/linuxproject’

    • Harvey says:

      sorry for copy and paste error… the -username and -password really are two hyphens, not a long dash.

    • Harvey says:

      Never mind. I figured out the problem. It works when we append the URL of the server, for example:
      #svn import -m “First SVN Repo” –username MYUSER –password MYPASSWORD /mnt/linuxproject ‘http://MYSERVER/svn/repo’
      (above should show hyphen hyphen before username and password switches; if it shows long dash, it really should be hyphen hyphen)

    • Harvey says:

      svn import is giving me this error:
      svn: E175011: Repository moved permanently to ‘http://MYSERVER/svn/repo’; please relocate

  7. Praveen S. Kumar says:

    Excellent writeup. We were using subversion in ClearOS 6.8. Recently we upgraded to ClearOS 7.3. Ran into an issue and while looking it up came across your article. We are able to follow the steps and checkout and commit changes. However not able to connect from TortoiseSVN client on windows. When we try to connect to repo, it prompts for the password, and after that its waits for a while before finally giving an error “Error running context. The server unexpectedly closed the connection”. Any thoughts as to what might be going on?

    • Hi Parveen,

      We have not tested these steps on ClearOS 7.3, For the basic troubleshooting make sure required permissions are set on the Project, SELinux rules should be properly set in case it is enabled and check the Apache logs for errors

  8. Chetana says:

    Hi ,

    I followed the same procedure . I have not got any error while doing .

    After runnig this commnand — > systemctl enable httpd.service
    Got this output
    Created symlink from /etc/systemd/system/ to /usr/lib/systemd/system/ httpd.service.

    but still am not able to access svn repo

    am getting this error

    Not Found
    The requested URL /svn/repo was not found on this server.

    Can someone suggest me what needs to be changed . if there problem with my machine .

  9. Angel Dávila says:

    Excellent article

  10. JC says:

    Hi there,

    I am currently moving from Windows SVN to CentOS 7

    I have a folder which contains the all the users designated to each repo.

    I have imported it into CentOS.

    My question is, where do i put this file? I checked “svn-auth-accounts” and I just have the one user which i created, and the password is hashed.

    Where is the file that contains the groups?

  11. rim says:

    chmod -R 700 * work better for me

  1. September 28, 2015

    […] Install SVN or Apache Subversion on CentOS 7 […]

Leave a Reply

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