title: Setting up Subversion Server on Mac OS mountain lion (have access via browser, but un-able to checkout from subversion)
body: <p>Some details (maybe it would be usefull for some guys):</p>
  
  <p><strong>On board</strong>: mac mini + mountain lion + Server.app.</p>
  
  <p><strong>Problem</strong>:
  I do have access to my subversion repo via browser, but do not have access to it via command line to checkout (for example).</p>
  
  <p><em><strong>I've done</em></strong>:</p>
  
  <ol>
  <li><p>Got <strong>mod_dav_svn.so</strong> and <strong>mod_authz_svn.so</strong> from Mac OS Lion and put it into <code>/usr/libexec/apache2</code></p></li>
  <li><p>Next, created <strong>com.site.svn.plist</strong> in <strong>/Library/Server/Web/Config/apache2/webapps</strong>:</p>
  
  <blockquote>
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
  &lt;plist version="1.0"&gt;
  
  &lt;dict&gt; 
    &lt;key&gt;name&lt;/key&gt;
    &lt;string&gt;com.site.svn&lt;/string&gt;
    &lt;key&gt;includeFiles&lt;/key&gt;
    &lt;array&gt;
        &lt;string&gt;/private/etc/apache2/svn_configs/svn_config.conf&lt;/string&gt;
    &lt;/array&gt;
      &lt;key&gt;requiredModuleNames&lt;/key&gt;
    &lt;array&gt;
        &lt;string&gt;dav_svn_module&lt;/string&gt;
        &lt;string&gt;authz_svn_module&lt;/string&gt;
    &lt;/array&gt;
    &lt;key&gt;sslPolicy&lt;/key&gt;
    &lt;integer&gt;1&lt;/integer&gt;
    &lt;/dict&gt;
  &lt;/plist&gt;
  </code></pre>
  </blockquote></li>
  <li><p><strong>I've added LoadModule(s)</strong> for <strong>mod_dav_svn.so</strong> and <strong>mod_authz_svn.so</strong> into <strong>/Library/Server/Web/Config/apache2/httpd_server_app.conf</strong>:</p>
  
  <blockquote>
  <pre><code>LoadModule dav_svn_module libexec/apache2/mod_dav_svn.so
  LoadModule authz_svn_module libexec/apache2/mod_authz_svn.so
  </code></pre>
  </blockquote></li>
  <li><p><strong>I've created</strong> **/private/etc/apache2/svn_configs/svn_config.conf**:</p>
  
  <blockquote>
  <pre><code>&lt;Location /svn/repo1&gt;
  
          DAV svn
          AuthName "Subversion auth"
          SVNPath /Users/someUser/Repositories/Repo1Repo
  
          &lt;Limit GET HEAD OPTIONS CONNECT POST PROPFIND PUT DELETE PROPPATCH MKCOL COPY MOVE LOCK UNLOCK&gt;
                  Require group repo1users
          &lt;/Limit&gt;
  
          AuthType Basic
          Require group repo1users
  
  &lt;/Location&gt;
  </code></pre>
  </blockquote></li>
  <li><p><strong>I've executed</strong> from the terminal: </p></li>
  </ol>
  
  <blockquote>
    <p>webappctl start com.site.svn</p>
  </blockquote>
  
  <p>and after that I'm <strong>able to reach</strong> repo1 via <code>https://site/svn/repo1</code></p>
  
  <p>but when I'm trying to subversion checkout system gives me:
  <code></p>
  
  <blockquote>
  <pre><code>&gt;&gt;&gt;svn co https://site/svn/repo1
  Authentication realm: &lt;https://site:443&gt; UserWebDAV Gateway
  Password for 'someUser': 
  svn: access to 'https://site/svn/repo1' forbidden
  </code></pre>
    
    <p></code></p>
  </blockquote>
  
  <p><strong>Do you have any clue why I have this situation ?</strong></p>
  
  <p>P.S. Rights for</p>
  
  <blockquote>
  <pre><code>/Users/someuser/Repositories
  /Users/someuser/Repositories/Repo1Repo
  /Users/someuser/Repositories/Repo1Repo/*
  </code></pre>
  </blockquote>
  
  <p>are <strong>777</strong>, <strong>owner/group</strong> - <strong>_www:_www</strong></p>
  
  <p>I've used for it - I read <a href="http://www.themacosxserveradmin.com/2011/01/lion-server-and-svn.html" rel="nofollow">http://www.themacosxserveradmin.com/2011/01/lion-server-and-svn.html</a> and tried to integrate it to mountain lion.</p>
  
  <p><strong>Thank you for your thoughts.</strong></p>