Old talk:Installing SVN: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 7: Line 7:
----
----
</div>
</div>
----
&lt;div style=&quot;background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;&quot;&gt;
----
=[http://atosaca.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=
----
=[http://atosaca.co.cc CLICK HERE]=
----
&lt;/div&gt;
MrX has reported a problem with SVN working under the /www/ folder...
MrX has reported a problem with SVN working under the /www/ folder...


Line 20: Line 28:


From the free SVN book licensed under Creative Commons:  
From the free SVN book licensed under Creative Commons:  
=== [http://svnbook.red-bean.com/en/1.1/apb.html#svn-ap-b-sect-1.2.15 '''I can see my repository in a web browser, but''' &lt;u&gt;svn checkout&lt;/u&gt; '''gives me an error about''' ''301 Moved Permanently''.] ===
=== [http://svnbook.red-bean.com/en/1.1/apb.html#svn-ap-b-sect-1.2.15 '''I can see my repository in a web browser, but''' &amp;lt;u&amp;gt;svn checkout&amp;lt;/u&amp;gt; '''gives me an error about''' ''301 Moved Permanently''.] ===
&lt;pre&gt;
&amp;lt;pre&amp;gt;
It means your httpd.conf is misconfigured. Usually this error happens
It means your httpd.conf is misconfigured. Usually this error happens
when you've defined the Subversion virtual “location” to exist within
when you've defined the Subversion virtual “location” to exist within
two different scopes at the same time.
two different scopes at the same time.


For example, if you've exported a repository as &lt;Location /www/foo&gt;,
For example, if you've exported a repository as &amp;lt;Location /www/foo&amp;gt;,
but you've also set your DocumentRoot to be /www, then you're in
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
trouble. When the request comes in for /www/foo/bar, Apache doesn't
Line 32: Line 40:
DocumentRoot, or whether to ask mod_dav_svn to fetch a file /bar
DocumentRoot, or whether to ask mod_dav_svn to fetch a file /bar
from the /www/foo repository. Usually the former case wins, and
from the /www/foo repository. Usually the former case wins, and
hence the &quot;Moved Permanently&quot; error.
hence the &amp;quot;Moved Permanently&amp;quot; error.


The solution is to make sure your repository &lt;Location&gt; does
The solution is to make sure your repository &amp;lt;Location&amp;gt; does
not overlap or live within any areas already exported as normal
not overlap or live within any areas already exported as normal
web shares.
web shares.
&lt;/pre&gt;
&amp;lt;/pre&amp;gt;


From what I understand, that means your Repository Root shouldn't be under your Apache DocumentRoot. I decided to try it out for myself.
From what I understand, that means your Repository Root shouldn't be under your Apache DocumentRoot. I decided to try it out for myself.
After changing my Repository Root into /www/svn. I got this error while trying to commit:
After changing my Repository Root into /www/svn. I got this error while trying to commit:
&lt;pre&gt;&lt;nowiki&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;
D:\Misc\SVN\testbdb&gt;svn commit --message &quot;More Test&quot;
D:\Misc\SVN\testbdb&amp;gt;svn commit --message &amp;quot;More Test&amp;quot;
svn: Commit failed (details follow):
svn: Commit failed (details follow):
svn: OPTIONS request failed on '/svn/testbdb'
svn: OPTIONS request failed on '/svn/testbdb'
svn: OPTIONS of '/svn/testbdb': 301 Moved Permanently (http://localhost)
svn: OPTIONS of '/svn/testbdb': 301 Moved Permanently (http://localhost)
&lt;/nowiki&gt;&lt;/pre&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;


I moved changed my Repository Root back to /home/svn and tried again. This is what I got:
I moved changed my Repository Root back to /home/svn and tried again. This is what I got:
&lt;pre&gt;&lt;nowiki&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;
D:\Misc\SVN\testbdb&gt;svn commit --message &quot;New Files :D&quot;
D:\Misc\SVN\testbdb&amp;gt;svn commit --message &amp;quot;New Files :D&amp;quot;
Adding        123.txt
Adding        123.txt
Adding        New.txt
Adding        New.txt
Transmitting file data ..
Transmitting file data ..
Committed revision 6.
Committed revision 6.
&lt;/nowiki&gt;&lt;/pre&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;


Other than that, I get a bunch of errors like these every time I access my repository:
Other than that, I get a bunch of errors like these every time I access my repository:
&lt;pre&gt;
&amp;lt;pre&amp;gt;
[Sat Apr 09 12:33:27 2005] [error] A subtree cannot specify a different
[Sat Apr 09 12:33:27 2005] [error] A subtree cannot specify a different
DAV provider than its parent.
DAV provider than its parent.
Line 65: Line 73:
[Sat Apr 09 12:33:28 2005] [error] A subtree cannot specify a different  
[Sat Apr 09 12:33:28 2005] [error] A subtree cannot specify a different  
DAV provider than its parent.
DAV provider than its parent.
&lt;/pre&gt;
&amp;lt;/pre&amp;gt;
My current guess is that, it has something to do with activating Dav in /www
My current guess is that, it has something to do with activating Dav in /www


322

edits

Navigation menu