HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Feature Requests (http://www.howtoforge.com/forums/forumdisplay.php?f=17)
-   -   Subversion&Trac support (http://www.howtoforge.com/forums/showthread.php?t=1035)

sinosmond 28th October 2005 22:09

Subversion&Trac support
 
How to build ISPConfig to support Subversion&Trac for every user ?

Hope Subversion&Trac support become a module of ISPConfig.

falko 29th October 2005 19:52

You mean you want to create a subversion account for every user?
What is Trac?

sinosmond 29th October 2005 21:53

Quote:

Originally Posted by falko
You mean you want to create a subversion account for every user?

Yes, like www.csoft.net

==============================================
I think, Subversion support maybe 4 case:

1. repo at / , one repo

$ svnadmin create /home/www/web1/web
------------------------------------------------------------
LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.so
<Location />
DAV svn
SVNPath /home/www/web1/web

AuthType Basic
AuthName "Subversion repository"
AuthUserFile /home/www/web1/.htpasswd

<LimitExcept GET PROPFIND OPTIONS REPORT>
SSLRequireSSL
Require valid-user
</LimitExcept>
</Location>

2. repos at / , multi repos

$ svnadmin create /home/www/web1/web/project1
$ svnadmin create /home/www/web1/web/project2
------------------------------------------------------------
LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.so
<Location />
DAV svn
SVNParentPath /home/www/web1/web

AuthType Basic
AuthName "Subversion repository"
AuthUserFile /home/www/web1/.htpasswd

<LimitExcept GET PROPFIND OPTIONS REPORT>
SSLRequireSSL
Require valid-user
</LimitExcept>
</Location>

3. repo at /svn , one repo

$ svnadmin create /home/www/web1/web/svn
------------------------------------------------------------
LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.so
<Location /svn>
DAV svn
SVNPath /home/www/web1/web/svn

AuthType Basic
AuthName "Subversion repository"
AuthUserFile /home/www/web1/.htpasswd

<LimitExcept GET PROPFIND OPTIONS REPORT>
SSLRequireSSL
Require valid-user
</LimitExcept>
</Location>

4. repos at /svn , multi repos

$ svnadmin create /home/www/web1/web/svn/project1
$ svnadmin create /home/www/web1/web/svn/project2
------------------------------------------------------------
LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.so
<Location /svn>
DAV svn
SVNParentPath /home/www/web1/web/svn

AuthType Basic
AuthName "Subversion repository"
AuthUserFile /home/www/web1/.htpasswd

<LimitExcept GET PROPFIND OPTIONS REPORT>
SSLRequireSSL
Require valid-user
</LimitExcept>
</Location>
------------------------------------------------------------

maybe more...


Quote:

Originally Posted by falko
What is Trac?

Trac Project

Spum 30th October 2005 18:05

Err, it's kinda like SVN or CVS.. But, what is the point, most users wont even know what it is :-/

sinosmond 31st October 2005 23:37

Quote:

Originally Posted by Spum
Err, it's kinda like SVN or CVS.. But, what is the point, most users wont even know what it is :-/

I want service some developers , vhost should support svn or cvs .

at least, I can add snippet which can't delete by ISPConfig in Vhost.conf .

xinman 9th February 2006 05:12

Currently I have a working ISPConfig server setup. I was reading your post about SVN. I use my ISPConfig primarily for testing webapps, etc... it's not really a production system. I would like to implement SVN, as I am no longer able to SFTP into my box from work. I have diffrent subdomains for every project that I do. I would like each to have a repos. Not automagically, I am willing to create the repos as needed (some will not need it). I was looking at
Code:

2. repos at / , multi repos

$ svnadmin create /home/www/web1/web/project1
$ svnadmin create /home/www/web1/web/project2
------------------------------------------------------------
LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.so
<Location />
DAV svn
SVNParentPath /home/www/web1/web

AuthType Basic
AuthName "Subversion repository"
AuthUserFile /home/www/web1/.htpasswd

<LimitExcept GET PROPFIND OPTIONS REPORT>
SSLRequireSSL
Require valid-user
</LimitExcept>
</Location>

I believe this is what I want, but I need to know, did you get this implementation working, or do you see any reason why it shouldn't. Can you also tell me where exactly I need to put the conf info
Code:

LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.so
<Location />
DAV svn
SVNParentPath /home/www/web1/web

AuthType Basic
AuthName "Subversion repository"
AuthUserFile /home/www/web1/.htpasswd

<LimitExcept GET PROPFIND OPTIONS REPORT>
SSLRequireSSL
Require valid-user
</LimitExcept>
</Location>

Does it go in the apache directives?

till 9th February 2006 10:06

I think the loadmodule directives should go directly in your httpd.conf.

The other directives should be put i the apache directives field of the website in ISPConfig.

d0nut 21st October 2006 18:22

great stuff.. in the browser it works fine
i configured ssl over ispconfig, added the code in apache directives (over ispconfig) and everything was ok

but when i try a checkout, i always get a 301 error message

svn: PROPFIND Anfrage fehlgeschlagen auf '/svn/projekt'
svn: PROPFIND von '/svn/projekt': 301 Moved Permanently

this concers the "DocumentRoot"-Problem
-> http://subversion.tigris.org/faq.html#301-error

but how to solve? how to make this directories not to overlap?

falko 22nd October 2006 17:05

Does this apply to your situation?

Quote:

For example, if you've exported a repository as <Location /www/foo>, but you've also set your DocumentRoot to be /www, then you're in trouble. When the request comes in for /www/foo/bar, apache doesn't know whether to find a real file named /foo/bar within your DocumentRoot, or whether to ask mod_dav_svn to fetch a file /bar from the /www/foo repository. Usually the former case wins, and hence the "Moved Permanently" error.
Can you post your SVN Apache vhost configuration here?

d0nut 22nd October 2006 18:01

hi falko
this is the full entry from Vhosts_ispconfig.conf
The SVN Path overlaps the DocumentRoot
The problem is clear - but why did it work for the users above

I just reread the text - So this text from the FAQ would fit, if i would have a folder named /svn in the linux root filesystem.
that's not the case

but now i have complety no idea, what to do

Code:

<VirtualHost 88.198.215.155:80>
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>
SuexecUserGroup nobody web33
ServerName svn.easy-coding.de:80
ServerAdmin nobody@easy-coding.de
DocumentRoot /var/www/web33/web
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ErrorLog /var/www/web33/log/error.log
Alias /error/ "/var/www/web33/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web33/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web33/user/$1/web/$3
</VirtualHost>



All times are GMT +2. The time now is 20:47.

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