{"id":270,"date":"2009-01-23T18:22:19","date_gmt":"2009-01-23T23:22:19","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=270"},"modified":"2010-03-19T14:38:47","modified_gmt":"2010-03-19T19:38:47","slug":"integrate-subversion-15-and-apache-22","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=270","title":{"rendered":"Install Subversion 1.5 and Apache 2.2"},"content":{"rendered":"<span id=\"Install_Subverison_1.5\"><h2>Install Subverison 1.5<\/h2><\/span>\n<p>Download and unzip Subversion 1.5 binary built for Apache 2.2 (svn-win32-1.5.4.zip) from <a href=\"http:\/\/subversion.tigris.org\/servlets\/ProjectDocumentList?folderID=8100\">here<\/a><\/p>\n<span id=\"Install_Apache_2.2\"><h2>Install Apache 2.2<\/h2><\/span>\n<p>Download and install Apache 2.2 (apache_2.2.9-win32-x86-openssl-0.9.8h-r2.msi)<\/p>\n<span id=\"Integrate_Subversion_1.5_with_Apache_2.2\"><h2>Integrate Subversion 1.5 with Apache 2.2<\/h2><\/span>\n<span id=\"Enable_SVN_modules\"><h3>Enable SVN modules<\/h3><\/span>\n<p>* Copy from Subversion\/bin directory to the Apache\/modules directory.<br \/>\nmod_dav_svn.so<br \/>\nmod_authz_svn.so<\/p>\n<p>* Add the Subversion\/bin directory to the SYSTEM PATH so all the Subversion support dll&#8217;s are visible to the Apache service.<\/p>\n<p>* Edit the Apache configuration file (httpd.conf)<\/p>\n<p>Uncomment:<\/p>\n<pre lang=\"xml\">\r\n#LoadModule dav_fs_module modules\/mod_dav_fs.so\r\n#LoadModule dav_module modules\/mod_dav.so\r\n<\/pre>\n<p>Add:<\/p>\n<pre lang=\"xml\">\r\nLoadModule dav_svn_module modules\/mod_dav_svn.so\r\nLoadModule authz_svn_module modules\/mod_authz_svn.so\r\n<\/pre>\n<span id=\"Use_LDAP_authentication\"><h3>Use LDAP authentication<\/h3><\/span>\n<pre lang=\"xml\">\r\n<Location \/svn>\r\n  DAV svn\r\n  SVNPath your\/repository\/path\r\n  #Use SVNParentPath if multiple svn repositories\r\n\r\n  Order allow,deny\r\n  Allow from all\r\n  AuthType Basic\r\n  AuthBasicProvider ldap\r\n  AuthName \"Subversion login\"\r\n  AuthzLDAPAuthoritative on\r\n\r\n  #OpenLdap\r\n  #AuthLDAPURL ldap:\/\/coe-soa-4\/ou=Users,dc=example,dc=com\r\n  #AuthLDAPBindDN \"cn=Manager,dc=example,dc=com\"\r\n  #AuthLDAPBindPassword \"secret\"\r\n\r\n  #Active directory note port 3268 NOT 389\r\n  #AuthLDAPURL \"ldap:\/\/adserver.company.com:3268\/DC=company,DC=com?sAMAccountName?sub?(objectClass=user)\"\r\n  #AuthLDAPBindDN       ldap-auth-user@company.com\r\n  #AuthLDAPBindPassword \"the_password\"\r\n\r\n  Require valid-user\r\n<\/Location>\r\n<\/pre>\n<span id=\"Use_local_files_for_authentication\"><h3>Use local files for authentication<\/h3><\/span>\n<span id=\"Add_to_httpd.conf\"><h4>Add to httpd.conf<\/h4><\/span>\n<pre lang=\"xml\">\r\n<Location \/svn>\r\n  DAV svn\r\n  #SVNPath c:\\path\\to\\repo\r\n  #Use SVNParentPath if multiple svn repositories\r\n  SVNParentPath C:\\path\\to\\repo\r\n  AuthType Basic\r\n  AuthName \"SVN Repository\"\r\n  AuthUserFile passwd\r\n  AuthzSVNAccessFile authz\r\n  Require valid-user\r\n<\/Location>\r\n<\/pre>\n<span id=\"Create_passwd_File\"><h4>Create passwd File<\/h4><\/span>\n<p>* Create passwd file<\/p>\n<pre>cd %Apache2%\r\nbin\\htpasswd -c passwd <user11><\/pre>\n<p>* Add additional users<\/p>\n<pre>bin\\htpasswd passwd <user12><\/pre>\n<span id=\"Create_authz_File\"><h4>Create authz File<\/h4><\/span>\n<pre>\r\n# Define some project groups\r\n[groups]\r\nproject1-developers = user11, user12, user13\r\nproject2-developers = user21, user22, user23\r\n\r\n# project1 usrs have read and write access to path1 and all sub folders\r\n[path1:\/]\r\n@project1-developers = rw\r\n\r\n# project2 users have read and write access to path2 and sub folders\r\n# under the path 1 foler\r\n[path1:\/path2]\r\n@project2-developers = rw\r\n<\/pre>\n<span id=\"Restart_Apache\"><h4>Restart Apache<\/h4><\/span>\n<p>Don&#8217;t forget to restart Apache.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install Subverison 1.5 Download and unzip Subversion 1.5 binary built for Apache 2.2 (svn-win32-1.5.4.zip) from here Install Apache 2.2 Download and install Apache 2.2 (apache_2.2.9-win32-x86-openssl-0.9.8h-r2.msi) Integrate Subversion 1.5 with Apache 2.2 Enable SVN modules * Copy from Subversion\/bin directory to &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=270\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[21,67],"tags":[],"class_list":["post-270","post","type-post","status-publish","format-standard","hentry","category-apache","category-svn"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-4m","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=270"}],"version-history":[{"count":10,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/270\/revisions"}],"predecessor-version":[{"id":1484,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/270\/revisions\/1484"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}