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:17] – k2patel | subversion [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | cd / | + | <code bash> |
+ | cd / | ||
+ | </ | ||
Make backup of Makefile. | Make backup of Makefile. | ||
+ | <code text> | ||
Edit Makefile and add following line. (after SVNFSTYPE? | Edit Makefile and add following line. (after SVNFSTYPE? | ||
Line 10: | Line 12: | ||
make -DWITH_MOD_DAV_SVN -DWITH_NEON -DWITH_BDB | make -DWITH_MOD_DAV_SVN -DWITH_NEON -DWITH_BDB | ||
+ | </ | ||
- | #LoadModule dav_module | + | <code apache> |
- | LoadModule dav_svn_module | + | #LoadModule dav_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 | ||
+ | <code text> | ||
+ | URL : http:// | ||
- | svn information | + | e.g. community project URL will be : http:// |
- | ^^^^^^^^^^^^^^^ | + | |
- | *************** | + | |
- | URL : http:// | + | Username |
+ | Password | ||
- | e.g. community project URL will be : http://svn.newyorkdailypost.net/ | + | repository access file location |
- | Username | + | username defination file path : / |
- | Password : 0d84Dp7k | + | |
- | repository | + | access |
- | username defination file path : | + | </code> |
- | + | ||
- | access INFO : svn co --username svnrepo http:// | + | |
+ | <code text> | ||
svn-access.conf | svn-access.conf | ||
^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^ | ||
Line 46: | Line 50: | ||
[community:/ | [community:/ | ||
- | harry = rw | + | user1 = rw |
- | sally = r | + | user2 = r |
+ | </ | ||
- | Modules | + | <code apache | Httpd.conf> |
- | ^^^^^^^ | + | |
LoadModule dav_module | LoadModule dav_module | ||
Line 57: | 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 80: | 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 103: | 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 136: | 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 160: | 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 167: | Line 161: | ||
exec / | exec / | ||
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | + | </ |
subversion.1238383025.txt.gz · Last modified: 2020/08/10 02:29 (external edit)