The following is a concise run-through of the steps I took to get Subversion installed, running, and viewable/fetchable (via Apache2) on Fedora Core 3:
- Installed Subversion: yum install subversion
- Installed mod_dav_svn: yum install mod_dav_svn
- Created a new repository according to the Subversion Book
- Created a new project according to the Subversion Book
- Added the basic Location directive outlined in the Basic Apache Configuration section of the Subversion Book (I skipped the LoadModule step because it was taken care of when mod_dav_svn was installed)
- Made sure the ServerName entry was correct in httpd.conf
- Restarted Apache2: sudo /etc/init.d/httpd restart
- Updated permissions on my new SVN repository: sudo chown -R apache /path/to/repository
- Viewed the contents of my repository by pointing Firefox at http://localhost/svn (replace /svn with whatever you use in your Location directive)
And there you have it. Subversion up and running on Fedora Core 3. If you get stuck along the way, the Subversion Book is an excellent resource containing just about all the information you need to get up and running.
Comments
Hrm. When I did this, I got a "could not open the requested svn filesystem" message. I did both a chown and chgrp to apache on the directory tree, but no dice. Been at this for hours now. Apparently SELinux really gums things up. If this did not work for you, check your SELinux settings and look to open up the httpd daemon.
I followed every step and svn is successfully installed.Now i created my repository:/home/elvis/svn, and tried to configure apache2,i added this:
LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.so, and restarted apache2 then i got this warning:
module dav_svn_module is already loaded, skipping, cool - it make sense, i removed it!
Now i went to the Location directory and do this:
<Location /svn>
DAV svn
SVNPath /home/elvis/svn
</Location> , i even tried this
<Location /repos>
DAV svn
SVNPath /home/elvis/svn
</Location>
AND I GOT THIS ERROS
svn: PROPFIND request failed on '/home/elvis/svn'
svn: PROPFIND of '/home/elvis/svn': 405 Method Not Allowed...
WHAT CAN BE THE PROBLEM?
It worked fine.
Thanks for this document.
-Sandeep
This helped me:
yum install mod_dav_svn
Looked everywhere for this - and found it here.
Thanks!
Great document, works fine for me.
Thanks a lot.
I received the following error :(
[root@lala ~]# svnadmin create /data/svnrepos
svn: Berkeley DB error while creating environment for filesystem /data/svnrepos/
db:
Invalid argument
svn: bdb: Berkeley DB library configured to support only DB_PRIVATE environments
Any ideas?
Also, it looks like I am running
%> ldd `which svn` | grep libdb
libdb-4.2.so => /lib/libdb-4.2.so (0xf7d64000)
hi, quick question - how long would you estimate it should take to install subversion on a fedora server?
Thanks,
very well written document. Although I am having the following problem: I seem to always get
svn: Can't create directory '/path/to/repos/db/transactions/0-1.txn': Permission denied
I have apache:apache ownership for all files in teh repos also I have disabled all restrictions in the svnserve.conf file, i.e. anon=write
Any ideas?
Post Comments
If you feel like commenting on the above item, use the form below. Your email address will be used for personal contact reasons only, and will not be shown on this website.
This worked very well.. I would love to see and equally simple addendum detailing a trac install on Fedora. Thanks!
Permalink