Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Feature Requests

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 23rd October 2006, 17:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

I think you must place this:

Code:
LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.so
<Location /svn>
 DAV svn
 SVNParentPath /var/www/svn.easy-coding.de/web/svn
 AuthType Basic
 AuthName 'Subversion repository'
 AuthUserFile /var/www/svn.easy-coding.de/web/svn/.htpasswd
# <LimitExcept GET PROPFIND OPTIONS REPORT>
 SSLRequireSSL
 Require valid-user
# </LimitExcept>
</Location>
<Location /svn/projekt>
 AuthUserFile /var/www/svn.easy-coding.de/web/svn/projekt/.htpasswd
</Location>
<Location /svn/projekt2>
 AuthUserFile /var/www/svn.easy-coding.de/web/svn/projekt2/.htpasswd
</Location>
in your main Apache configuration, outside any vhost.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Sponsored Links
  #12  
Old 23rd October 2006, 17:42
d0nut d0nut is offline
Junior Member
 
Join Date: Jul 2006
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

same problem :-(
(of course i checked it after restarting apache)

on thursday i meet another guy who is more experienced in subversion than me
i will ask him, if he has any idea..

when i get a solution/or get no solution i will post here later this week
Reply With Quote
  #13  
Old 25th October 2006, 22:00
d0nut d0nut is offline
Junior Member
 
Join Date: Jul 2006
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

i got it :-D
so the DocumentRoot has to Differ from svnroot
the example from site1 should not have worked!

This works:
<Location />
DAV svn
SVNParentPath /var/www/www.projekt.de/web/svn
</Location>

This does not work:
<Location /svn>
DAV svn
SVNParentPath /var/www/www.projekt.de/web/svn
</Location>
Reply With Quote
  #14  
Old 14th February 2007, 10:51
jacobhenry jacobhenry is offline
Member
 
Join Date: Feb 2006
Posts: 45
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I have followed this post and continue to get

Code:
svn: PROPFIND request failed on '/'
svn: PROPFIND of '/': 403 Forbidden (http://svn.scratchco.com)
These are the steps I have taken to this point

1) installed subversion

Code:
apt-get install subversion subversion-tools
2) enable subversion within apache 2
Code:
a2enmod dav-svn
I did it this way instead of placing the following code into the httpd.conf file
Code:
LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.so
3)Populated the Apache Directives with

Code:
<Location />
DAV svn
SVNParentPath /var/www/web7/web/svn

AuthType Basic
AuthName 'Subversion repository'
AuthUserFile /var/www/web7/.htpasswd

<LimitExcept GET PROPFIND OPTIONS REPORT>
SSLRequireSSL
Require valid-user
</LimitExcept>
</Location>
4) Test and get error message

Do you have any suggestions. From what i understand Apache is doing its job and not letting anyone access the files. What am I missing to override that protection?

Thanks
Jacob Henry
Reply With Quote
  #15  
Old 14th February 2007, 14:48
NETabuse NETabuse is offline
Junior Member
 
Join Date: Jan 2007
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Have you removed the LimitExcept block and tried it without? make sure you an get it working without protection first to make sure svn will work at all,, then worry about adding features. The fact that you used the a2enmod command should still work from what i understand, but maybe try adding the apache directives by hand to make sure.

let me know if it works i'm quite interested in this idea.
Reply With Quote
  #16  
Old 14th February 2007, 16:19
d0nut d0nut is offline
Junior Member
 
Join Date: Jul 2006
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

yeah.. everything step by step ;-)
before you try to use the subversion client - just call the url in your favourite browser. which site is shown? any error messages?

what does your logiles say? /var/www/web7/log/error.log

btw: i wrote a bashscript for creating trac and subversion files.
not very complicated: http://torben.bloggt.biz/howto-subversion-trac-hosting
Reply With Quote
  #17  
Old 14th February 2007, 16:31
jacobhenry jacobhenry is offline
Member
 
Join Date: Feb 2006
Posts: 45
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Now, when I try to connect to http://svn.scratchco.com/svn/ I get:

Code:
svn: PROPFIND request failed on '/svn'
svn: PROPFIND of '/svn': 301 Moved Permanently (http://svn.scratchco.com)
and when i try to connect to http://svn.scratchco.com I get
Code:
svn: PROPFIND request failed on '/'
svn: Could not open the requested SVN filesystem
My Apache Directives now looks like:

Code:
<Location />
DAV svn
SVNParentPath /var/www/svn.scratchco.com/web/svn

#AuthType Basic
#AuthName 'Subversion repository'
#AuthUserFile /var/www/svn.scratchco.com/.htpasswd2

#<LimitExcept GET PROPFIND OPTIONS REPORT>
#SSLRequireSSL
#Require valid-user
#</LimitExcept>
</Location>
Reply With Quote
  #18  
Old 14th February 2007, 16:37
d0nut d0nut is offline
Junior Member
 
Join Date: Jul 2006
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

did you create a project???

svnadmin create /var/www/svn.scratchco.com/web/svn/

or the following if you want to create more projects
svnadmin create /var/www/svn.scratchco.com/web/svn/pro1
svnadmin create /var/www/svn.scratchco.com/web/svn/pro2
svnadmin create /var/www/svn.scratchco.com/web/svn/pro3

Last edited by d0nut; 14th February 2007 at 17:15.
Reply With Quote
  #19  
Old 14th February 2007, 19:33
jacobhenry jacobhenry is offline
Member
 
Join Date: Feb 2006
Posts: 45
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I created a project and gave apache permissions. I will try to be as detailed as possible.

Here is my Apache Directive:

Code:
<Location />
DAV svn
SVNParentPath /var/www/svn.scratchco.com/web/svn
</Location>
1)I created a project using

Code:
svnadmin create /var/www/svn.scratchco.com/web/svn/
and here is the directory

Code:
root@server1:/var/www/web7/web# ls /var/www/svn.scratchco.com/web/svn/
conf  dav  db  format  hooks  locks  README.txt
2)I gave permission to Apache

Code:
chown -R www-data.www-data /var/www/svn.scratchco.com/web/svn/
3)When I explore to http://svn.scratchco.com/svn/ in internet explorer I get an HTTP 500 Internal Error
4)Firefox gives me this:

Code:
−<D:error>
<C:error/>
<m:human-readable errcode="2">
Could not open the requested SVN filesystem
</m:human-readable>
</D:error>
5) I believe my error log shows the problem, but I am not sure how to fix it.

Code:
[Wed Feb 14 13:20:58 2007] [error] (20014)Error string not specified yet: Can't open file '/var/www/svn.scratchco.com/web/svn/svn/format': No such file or directory
[Wed Feb 14 13:20:58 2007] [error] Could not fetch resource information.  [500, #0]
[Wed Feb 14 13:20:58 2007] [error] Could not open the requested SVN filesystem  [500, #2]
[Wed Feb 14 13:20:58 2007] [error] Could not open the requested SVN filesystem  [500, #2]
why is another svn directory in the path?

6)I tried shortening my path within the apache directive to
Code:
SVNParentPath /var/www/svn.scratchco.com/web
which finally displayed something on the browser but still did not let me connect using my client (eclipse). This method also presented me with the same problem discussed earlier in the topic.

I will continue to search for the solution. I appreciate all you help so far.

Thanks,
Jacob
Reply With Quote
  #20  
Old 14th February 2007, 19:52
d0nut d0nut is offline
Junior Member
 
Join Date: Jul 2006
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

sorry - no idea at the moment..
just a little hint. you don't have to test both cases.
when you use this code
<Location />
DAV svn
SVNParentPath /var/www/www.projekt.de/web/svn
</Location>

...then you have to call www.projekt.de in the browser - without the svn folder.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mono support Zoon Feature Requests 1 8th July 2008 14:56
Menu Support for JSP and aspx pontifex Feature Requests 1 19th September 2005 20:08
Support System Tribal-Dolphin Developers' Forum 18 24th August 2005 00:38
Powerdns Support jcid Feature Requests 0 20th August 2005 21:49
Installing on a x86_64 based system? hkaiser Installation/Configuration 23 20th August 2005 20:51


All times are GMT +2. The time now is 14:36.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.