If Not True Then False

Install SVN Server on Fedora 25/24, CentOS/RHEL 7.3/6.8/5.11 - Comment Page: 9

This is guide, howto install SVN (Subversion) server on Fedora 25/24/23/22/21/20, CentOS 7.3/6.8/5.11, Red Hat (RHEL) 7.3/6.8/5.11. 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...

311 Comments

Leave a Comment

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

Input your comment.
help

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Input your name.

Taha

For some reason i dont get the popup of username password in domainzguru.com/svn/dgrepo

reply Reply
lideth

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.

reply Reply
JR

Hi lideth,

Try to change following lines:


AuthName Basic
AuthName “SVN1 Repositories”

To:


AuthType Basic
AuthName "SVN1 Repositories"

Then restart httpd.

reply Reply
lideth

hi JR,
i’ve already changed my subversion.conf,but it’s still nothing change.

reply Reply
lideth

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.

reply Reply
JR

Hi lideth,

I couldn’t find any link to your “paste” from your comments? So could you also post link here…

reply Reply
Hardik Thakker

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'

reply Reply
JR

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.

reply Reply
Beer Mohamed

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

reply Reply
Beer Mohamed

Adding the errors

[root@gb02qsr010arcr7 ~]# 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
[root@gb02qsr010arcr7 ~]#

reply Reply
JR

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.

reply Reply
James

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,

reply Reply
Pawan Saxena

I Have following error message

[root@localhost ~]# 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,

reply Reply
nirrr

im not getting the anything on the browser window…
please help…

reply Reply
JR

Hi nirrr,

Do you get totally empty browser window or some error code?

reply Reply
Vignesh

Hello sir,

Thanks.Ur tutorial is awesome, but can u pls add how to access the svn with LDAP users,.(Means needs to be integrate svn with LDAP)

Thanks

reply Reply