subversion
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
subversion [2009/03/30 03:20] – k2patel | subversion [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 15: | Line 15: | ||
<code apache> | <code apache> | ||
- | #LoadModule dav_module | + | #LoadModule dav_module |
- | LoadModule dav_svn_module | + | # / |
- | LoadModule authz_svn_module | + | LoadModule dav_svn_module |
+ | LoadModule authz_svn_module | ||
</ | </ | ||
- | Test it out the installation. | + | Test it out the installation.\\ |
Now set according to following live example. | Now set according to following live example. | ||
- | |||
- | |||
- | |||
svn information | svn information | ||
Line 46: | Line 43: | ||
</ | </ | ||
+ | <code text> | ||
svn-access.conf | svn-access.conf | ||
^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^ | ||
Line 52: | Line 50: | ||
[community:/ | [community:/ | ||
- | harry = rw | + | user1 = rw |
- | sally = r | + | user2 = r |
+ | </ | ||
- | Modules | + | <code apache | Httpd.conf> |
- | ^^^^^^^ | + | |
LoadModule dav_module | LoadModule dav_module | ||
Line 63: | Line 61: | ||
LoadModule authz_svn_module | LoadModule authz_svn_module | ||
- | <code apache | Httpd.conf> | + | |
< | < | ||
- | ServerName svn.newyorkdailypost.net | + | ServerName svn.k2patel.net |
- | DocumentRoot / | + | DocumentRoot / |
- | CustomLog / | + | CustomLog / |
- | CustomLog / | + | CustomLog / |
- | ServerAdmin webmaster@backend.newyorkdailypost.net | + | ServerAdmin webmaster@backend.k2patel.net |
- | / | + | / |
< | < | ||
DAV svn | DAV svn | ||
- | SVNPath / | + | SVNPath / |
- | AuthzSVNAccessFile / | + | AuthzSVNAccessFile / |
AuthType Basic | AuthType Basic | ||
AuthName " | AuthName " | ||
- | AuthUserFile / | + | AuthUserFile / |
Require valid-user | Require valid-user | ||
</ | </ | ||
Line 86: | Line 84: | ||
Trac Install | Trac Install | ||
- | ^^^^^^^^^^^^ | ||
- | ************ | ||
- | |||
Initialize trac using command | Initialize trac using command | ||
- | trac-admin / | ||
- | Module | + | <code bash> |
- | ^^^^^^ | + | trac-admin / |
+ | </ | ||
+ | |||
+ | <code apache | httpd.conf> | ||
LoadModule python_module / | LoadModule python_module / | ||
AddHandler mod_python .py | AddHandler mod_python .py | ||
- | Httpd.conf | + | < |
- | ^^^^^^^^^^ | + | DocumentRoot |
- | < | + | ServerName |
- | DocumentRoot /www/virtual/ | + | |
- | ServerName | + | |
< | < | ||
SetHandler mod_python | SetHandler mod_python | ||
Line 109: | Line 104: | ||
PythonDebug On | PythonDebug On | ||
PythonHandler trac.web.modpython_frontend | PythonHandler trac.web.modpython_frontend | ||
- | PythonOption TracEnv /www/virtual/swingerswgm/trac.newyorkdailypost.net | + | PythonOption TracEnv /srv/www/svn/pqr.k2patel.com |
- | PythonOption TracUriRoot / | + | PythonOption TracUriRoot / |
- | </ | + | </ |
- | < | + | < |
- | AuthType Basic | + | AuthType Basic |
- | AuthName " | + | AuthName " |
- | AuthUserFile /www/virtual/ | + | AuthUserFile |
Require valid-user | Require valid-user | ||
</ | </ | ||
</ | </ | ||
+ | </ | ||
+ | <code text> | ||
Stand Alone Server (svn://) | Stand Alone Server (svn://) | ||
- | ^^^^^^^^^^^^^^^^^^ | ||
- | ******************* | ||
- | |||
/ | / | ||
------------ | ------------ | ||
svnserve_enable=" | svnserve_enable=" | ||
- | svnserve_flags=" | + | svnserve_flags=" |
- | svnserve_data="/ | + | svnserve_data="/ |
- | svnserve_user=" | + | svnserve_user=" |
- | svnserve_user=" | + | |
< | < | ||
Line 142: | Line 135: | ||
---------------------- | ---------------------- | ||
edit password file and add username = password. | edit password file and add username = password. | ||
+ | </ | ||
- | + | <code text | SVN Access with SSH wrapper> | |
- | + | ||
- | SVN Access with SSH wrapper | + | |
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | + | |
- | *************************** | + | |
URI - svn+ssh:// | URI - svn+ssh:// | ||
- | e.g. svn co svn+ssh://yepmobi@yepmobile.webair.com/usr/www/ | + | e.g. svn co svn+ssh://username@xyz.k2patel.com/srv/www/svn |
+ | </ | ||
Wrapper script for svnserve | Wrapper script for svnserve | ||
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | + | <code text> |
- | *************************** | + | |
First of all, rename the original svnserve command into svnserve.bin | First of all, rename the original svnserve command into svnserve.bin | ||
(it usually resides in / | (it usually resides in / | ||
Line 166: | Line 153: | ||
Save the file as " | Save the file as " | ||
+ | </ | ||
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | + | <code bash | svnserve> |
#!/bin/sh | #!/bin/sh | ||
# wrap in order to put root in by default | # wrap in order to put root in by default | ||
Line 173: | Line 161: | ||
exec / | exec / | ||
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | + | </ |
subversion.1238383252.txt.gz · Last modified: 2020/08/10 02:29 (external edit)