Web Hosting Forum | Lunarpages
News: April 3, 2008 - New Contest! - Win 5 Years of Hosting and $1,000!
May 5, 2008 - May 08 Web Site of the Month? - Submit your LINKS!!!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 16, 2008, 03:09:13 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Subversion Setup Question  (Read 560 times)
boltz
Newbie
*
Offline Offline

Posts: 2


« on: February 25, 2008, 06:25:49 PM »

Hi, I'm trying to set up Subversion on my dedicated LP server, but I've gotten a little lost...

I installed with Yum as root.
sudo yum install subversion

Then, I created a new repository in /subversion/myproject/.
/subversion> svnadmin create myproject

I ran svnserve (which I was a little less sure about).
svnserve -d -r /subversion/myproject/

I updated svnserve.conf to turn on auth-access and add a [users] section.

Then, I tried to checkout the project on my local machine with TortoiseSVN, but it failed.
I tried http://[myipaddress]/subversion/myproject, https://[myipaddress]/subversion/myproject, and svn://[myipaddress]/subversion/myproject.
I received the following errors:

Error: PROPFIND request failed on '/subversion/myproject' 
Error: PROPFIND of '/subversion/myproject': 405 Method Not Allowed (http://[myipaddress]) 
(for http and https)

Error: Can't connect to host '[myipaddress]': A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
(for svn)

I'm obviously a novice at setting up servers!  Any assistance would be greatly appreciated!
Logged
JeremyD
SleePy...
Jabba the Hutt
*****
Offline Offline

Posts: 691


SMF Customizer Team Member


WWW
« Reply #1 on: February 26, 2008, 10:13:08 PM »

Interesting,
I was thinking about setting up SVN the other day as well. I wanted to set it up so I could do SVN commits to update codes in my /home/xxx/ folders fairly easy and have it easily downloaded by any of the admins.

I was just reading on it and haven't done anything (as doing this would be something I do when the other admins are around so we can discuss this).
But I think you don't use the subversion word in the url if I am correct.
Logged

perestrelka
Administrator
Jedi
*****
Offline Offline

Posts: 896



« Reply #2 on: February 26, 2008, 11:04:55 PM »

Hi Boltz,

If you are not enough experienced with server setups, I would recommend you to use some howto to get SVN installed on your server. Here is an example of such instructions: http://wiki.centos.org/HowTos/Subversion
Logged

Kind Regards,
Vlad Artamonov
boltz
Newbie
*
Offline Offline

Posts: 2


« Reply #3 on: February 27, 2008, 06:16:45 PM »

Thanks for pointing me in the right direction.  At this point, I think I'm doing things correctly, but have an issue...

I was unable to install mod_dav_svn with yum:
Error: Missing Dependency: httpd-mmn = 20020903 is needed by package mod_dav_svn

However, I supposedly has success installing it using RPM:
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package mod_dav_svn.i386 0:1.1.4-2.ent set to be updated
--> Running transaction check
--> Processing Dependency: httpd-mmn = 20020903 for package: mod_dav_svn
--> Finished Dependency Resolution
Install Complete
(though, it still shows up in the RPMs to install list -- is that normal?)

But when I try to configure Apache according to the cited, and other, setup guides, I get an error:
<Location /svn/myproject>
   DAV svn
   SVNPath "/svn/myproject"
   AuthType Basic
   AuthName "Subversion repository"
   AuthUserFile "/svn/svn_conf/passwd"
   Require valid-user
</Location>

results in

Configuration problem detected on line 3 of file /usr/local/apache/conf/includes/pre_virtualhost_2.conf: Unknown DAV provider: svn --- /usr/local/apache/conf/includes/pre_virtualhost_2.conf --- 3 ===> DAV svn <=== 4 SVNPath "/svn/myproject" 5 AuthType Basic 6 AuthName "Subversion repository" 7 AuthUserFile "/svn/svn_conf/passwd" 8 Require valid-user 9 --- /usr/local/apache/conf/includes/pre_virtualhost_2.conf ---

I've restarted both Apache and the server.  I tried including "Dav On" as well to no avail.  Has anyone else has problems using mod_dav_svn?  Anyone else had success with it?

Thanks again!
Logged
perestrelka
Administrator
Jedi
*****
Offline Offline

Posts: 896



« Reply #4 on: February 27, 2008, 08:59:37 PM »

Hello,

Did you follow this advice:

"Make sure you uncomment the following if they are commented out in Apache configuration:

LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so"
Logged

Kind Regards,
Vlad Artamonov
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM