Web Hosting Forum | Lunarpages
News: November 3, 2008 - Enter Your URL in to WIN the November Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 18, 2008, 08:10:00 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Subversion Setup Question  (Read 1500 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: 731


SMF 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
Master Jedi
*****
Offline Offline

Posts: 1098



« 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
Master Jedi
*****
Offline Offline

Posts: 1098



« 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
JeremyD
SleePy...
Jabba the Hutt
*****
Offline Offline

Posts: 731


SMF Team Member


WWW
« Reply #5 on: May 27, 2008, 05:23:07 PM »

boltz,

Are you using cPanel?
I am getting the same exact issue as you did.

I haven't tried a RPM yet, but I am thinking the issue is cPanel since it uses apache in a non default location and then the dav_svn module can't be found i assume or plugged into apache correctly.
I was able to build from source but using svnadmin gives me a segmentation fault. I will just give up on it for now Confused
Logged

perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1098



« Reply #6 on: May 28, 2008, 07:54:59 PM »

JeremyD,

I'm sure Boltz is using cPanel as /usr/local/apache/conf/includes/pre_virtualhost_2.conf is a config file used in Apache setup by cPanel.

Logged

Kind Regards,
Vlad Artamonov
jp@mtnops
Newbie
*
Offline Offline

Posts: 3


WWW
« Reply #7 on: June 02, 2008, 05:26:19 PM »

log in via ssh: (as root or use sudo)

# apt-get subversion

create your repo:

# svnadmin create --fs-type fsfs /PATHtoREPO
(fsfs DB type allows you to use viewVC easily later)

setup your project:

# svn mkdir file:///PATHtoREPO/projectname

# svn mkdir file:///PATHtoREPO/trunk

import it:

# svn import /path/to/projectcode file:///PATHtoREPO/projectname/trunk -m "1st Import"

svn status:

# svn status

will give you any changed or new files in your proj dir

commits:

# svn commit

this will allow you to work with subversion locally or via svn+ssh
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

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