Install SVN Server on Fedora 31/30, CentOS/RHEL 8.0/7.7 - Comment Page: 9
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...
Hi J R
thank for share this.
after i install SVN ready by following these step i get an error in log file
“configuration error: couldn’t perform authentication. AuthType not set!: /svn/repo”
do you know what kind of that error.
thank in advance!
hi J R,
i’ve got an error in log file
“configuration error: couldn’t perform authentication. AuthType not set!: /svn/repo”
pls help.thank you
Hi lideth,
Could you post content of your subversion.conf file?
For some reason i dont get the popup of username password in domainzguru.com/svn/dgrepo
hi JR,
now i can use my svn but i still don’t get the popup of username password in myDomain.com/svn/dgrepo on browser.
here is my subversion.conf:
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
#
# Example configuration to enable HTTP access for a directory
# containing Subversion repositories, “/var/www/svn”. Each repository
# must be both:
#
# a) readable and writable by the ‘apache’ user, and
#
# b) labelled with the ‘httpd_sys_content_t’ context if using
# SELinux
#
#
# To create a new repository “http://localhost/repos/stuff” using
# this configuration, run as root:
#
#
# # cd /var/www/svn
# # svnadmin create stuff
# # chown -R apache.apache stuff
# # chcon -R -t httpd_sys_content_t stuff
#
#
# DAV svn
# SVNParentPath /var/www/svn
#
# # Limit write permission to list of valid users.
#
# # Require SSL connection for password protection.
# # SSLRequireSSL
#
# AuthType Basic
# AuthName “Authorization Realm”
# AuthUserFile /path/to/passwdfile
# Require valid-user
#
#
DAV svn
SVNParentPath /var/www/svn/
SVNListParentPath on
AuthzSVNAnonymous Off
AuthzSVNAuthoritative On
SVNPathAuthz On
AuthName Basic
AuthName “SVN1 Repositories”
AuthUserFile /etc/svn-auth-users
AuthzSVNAccessFile /etc/svn-access-control
Require valid-user
do you have any idea about it?
thank you very much.
Hi lideth,
Try to change following lines:
To:
Then restart httpd.
hi JR,
i’ve already changed my subversion.conf,but it’s still nothing change.
Hi lideth,
Could you post your full configs example to http://pastebin.com ?
hi JR,
i’ve already post my full configs to that URL for long time. but you not yet reply me back, how is that?
thank you.
Hi lideth,
I couldn’t find any link to your “paste” from your comments? So could you also post link here…
Hi JR,
I have failed to access my repo from other machine. i can easily access http://localhost/repo/testrepo but failed to access using IP (i.e http://192.168.1.1/svn/testrepo). have i missing something?
thanks
hi JR,
i just reconfig firewall..
thanks
One thing you forgot to mention is that /var/www/svn is your apache web root. If its not, then you will run into permission trouble.
Can't open file '/var/www/svn/repos/db/txn-current-lock'
Hi Hardik,
Forgot to answer this, but actually you can see that on my example subversion.conf.
SVNParentPath directory-path
Specifies the location in the filesystem of a parent directory whose child directories are Subversion repositories. In a configuration block for a Subversion repository, either this directive or SVNPath must be present, but not both.
Hi,
I am new to linux environment. When I tried to setup SVN using yum i am getting a below error.Could some one tel me how could I rectify it and proceed further?.
Appreciate in advance..
Thanks
Beer
Adding the errors
[[email protected] ~]# yum install mod_dav_svn subversion
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
file:///media/cdrom/fix/rhel5-x86_64/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: ‘/media/cdrom/fix/rhel5-x86_64/repodata/repomd.xml’
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: yum_rpmsEL5-x86_64_level32. Please verify its path and try again
[[email protected] ~]#
Hi Beer Mohamed,
Looks like, you don’t have active RHEL subscription.
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
I am using Fedora 20. I followed your instruction for step 2 and the Apache & PHP installation. But I cannot find the subversion.conf file your mentioned in your step 3. The only similar is this:
$ sudo find / -name *subversion.conf*
/etc/httpd/conf.modules.d/10-subversion.conf
My SVN was setup few months ago. I can access my svn via “svn://”. My web server can display your test.php correctly. I want to add “http://” access. I do did your step 2 successfully. What I should do? create the subversion.conf in that location? but how it can be used by the system?
Thanks,
I Have following error message
[[email protected] ~]# svn import -m ‘Initial import’ /tmp/svn-structure-template/ http://localhost/svn/testrepo/
svn: E175002: Server sent unexpected return value (500 Internal Server Error) in response to POST request for ‘/svn/testrepo/!svn/me’
Please help me.
Thanks,
Very nice information i will install it into my server
Thanks Man
im not getting the anything on the browser window…
please help…
Hi nirrr,
Do you get totally empty browser window or some error code?
thanks a lot. It was very useful.