<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>Open Tech Notes</title>
	<link>http://zft.backupdiy.com</link>
	<description>All about open sources, like linux, apache, php, Zend Framework, MySQL, CentOS, Apachefriends...</description>
	<pubDate>Wed, 07 May 2008 05:32:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>
	<language>en</language>
			<item>
		<title>PROPFIND request failed on &#8216;/path/to/repo&#8217; and PROPFIND of &#8216;/path/to/repo&#8217;: 301 Moved Permanently</title>
		<link>http://zft.backupdiy.com/2008/05/06/propfind-request-failed-on-pathtorepo-and-propfind-of-pathtorepo-301-moved-permanently/</link>
		<comments>http://zft.backupdiy.com/2008/05/06/propfind-request-failed-on-pathtorepo-and-propfind-of-pathtorepo-301-moved-permanently/#comments</comments>
		<pubDate>Wed, 07 May 2008 05:31:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>SVN</dc:subject>
		<guid isPermaLink="false">http://zft.backupdiy.com/2008/05/06/propfind-request-failed-on-pathtorepo-and-propfind-of-pathtorepo-301-moved-permanently/</guid>
		<description><![CDATA[There are a lot of reasons cause this problem in SVN client. But the problem is in server side.
Here is a comprehensive explain about this issue :
http://www.checkupdown.com/status/E301.html
For my case, whenever I create a folder under /opt/lampp/htdocs and if the name is same with &#8216;path/to/repo&#8217; , it will cause this error message:
Error: PROPFIND request failed on [...]]]></description>
			<content:encoded><![CDATA[<p>There are a lot of reasons cause this problem in SVN client. But the problem is in server side.<br />
Here is a comprehensive explain about this issue :<br />
http://www.checkupdown.com/status/E301.html</p>
<p>For my case, whenever I create a folder under /opt/lampp/htdocs and if the name is same with &#8216;path/to/repo&#8217; , it will cause this error message:</p>
<p>Error: PROPFIND request failed on &#8216;/reponame&#8217;&nbsp; <br />
Error: PROPFIND of &#8216;/reponame&#8217;: 301 Moved Permanently (http://www.vancouvereasy.com)&nbsp;
</p>
]]></content:encoded>
			<wfw:commentRss>http://zft.backupdiy.com/2008/05/06/propfind-request-failed-on-pathtorepo-and-propfind-of-pathtorepo-301-moved-permanently/feed/</wfw:commentRss>
		</item>
		<item>
		<title>12:Option expected</title>
		<link>http://zft.backupdiy.com/2007/11/07/12option-expected/</link>
		<comments>http://zft.backupdiy.com/2007/11/07/12option-expected/#comments</comments>
		<pubDate>Wed, 07 Nov 2007 21:44:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>SVN</dc:subject>
		<guid isPermaLink="false">http://zft.backupdiy.com/2007/11/07/12option-expected/</guid>
		<description><![CDATA[This is the only error message I encountered on setting up SVN sever on Windows 2003.
Here is the config file:
 ### This file controls the configuration of the svnserve daemon, if you 
### use it to allow access to this repository. (If you only allow 
### access through http: and/or file: URLs, then this file [...]]]></description>
			<content:encoded><![CDATA[<p>This is the only error message I encountered on setting up SVN sever on Windows 2003.</p>
<p>Here is the config file:</p>
<p><span class="postbody"> ### This file controls the configuration of the svnserve daemon, if you <br />
### use it to allow access to this repository. (If you only allow <br />
### access through http: and/or file: URLs, then this file is <br />
### irrelevant.) </p>
<p>### Visit <a href="http://subversion.tigris.org/" target="_blank">http://subversion.tigris.org/</a> for more information. </p>
<p>[general] <br />
### These options control access to the repository for unauthenticated <br />
### and authenticated users. Valid values are &quot;write&quot;, &quot;read&quot;, <br />
### and &quot;none&quot;. The sample settings below are the defaults. <br />
&nbsp;anon-access=read <br />
&nbsp;auth-access=write <br />
### The password-db option controls the location of the password <br />
### database file. Unless you specify a path starting with a /, <br />
### the file&#8217;s location is relative to the conf directory. <br />
### Uncomment the line below to use the default password file. <br />
&nbsp;password-db=passwd <br />
### The authz-db option controls the location of the authorization <br />
### rules for path-based access control. Unless you specify a path <br />
### starting with a /, the file&#8217;s location is relative to the conf <br />
### directory. If you don&#8217;t specify an authz-db, no path-based access <br />
### control is done. <br />
### Uncomment the line below to use the default authorization file. <br />
# authz-db = authz <br />
### This option specifies the authentication realm of the repository. <br />
### If two repositories have the same authentication realm, they should <br />
### have the same password database, and vice versa. The default realm <br />
### is repository&#8217;s uuid. <br />
# realm = My First Repository </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Solution is very simple, just remove the SPACE in front of lines which are not be commented.</p>
<p></span>
</p>
]]></content:encoded>
			<wfw:commentRss>http://zft.backupdiy.com/2007/11/07/12option-expected/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Taking advantage of &#8220;post-commit&#8221;</title>
		<link>http://zft.backupdiy.com/2007/10/28/taking-advantage-of-post-commit/</link>
		<comments>http://zft.backupdiy.com/2007/10/28/taking-advantage-of-post-commit/#comments</comments>
		<pubDate>Mon, 29 Oct 2007 06:44:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>SVN</dc:subject>
	<dc:subject>Backup</dc:subject>
		<guid isPermaLink="false">http://zft.backupdiy.com/2007/10/28/taking-advantage-of-post-commit/</guid>
		<description><![CDATA[If the SVN system could be a good backup system, then the &#34;post-commit&#34; script would be a hidden gem. After I have done the &#34;weird&#34; requirement from the programmers, It trigger me think about a nice backup system.
Writing a remote executable SSH command in post-commit script of the SVN system. After every commit, the system [...]]]></description>
			<content:encoded><![CDATA[<p>If the SVN system could be a good backup system, then the &quot;post-commit&quot; script would be a hidden gem. After I have done the &quot;weird&quot; requirement from the programmers, It trigger me think about a nice backup system.</p>
<p>Writing a remote executable SSH command in post-commit script of the SVN system. After every commit, the system will automatically put all files to two different hosts. The two hosts can be located in two different cities, even two different countries.
</p>
]]></content:encoded>
			<wfw:commentRss>http://zft.backupdiy.com/2007/10/28/taking-advantage-of-post-commit/feed/</wfw:commentRss>
		</item>
		<item>
		<title>post commit</title>
		<link>http://zft.backupdiy.com/2007/10/16/post-commit/</link>
		<comments>http://zft.backupdiy.com/2007/10/16/post-commit/#comments</comments>
		<pubDate>Tue, 16 Oct 2007 21:40:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>SVN</dc:subject>
	<dc:subject>Linux Admin</dc:subject>
	<dc:subject>command</dc:subject>
		<guid isPermaLink="false">http://zft.backupdiy.com/2007/10/16/post-commit/</guid>
		<description><![CDATA[Programmers require that they want see the effect right after they commit their codes and fortunately the SVN system provides such a great tool to do so.
Under /repository name/hooks/, there is a file called post-commit.tmpl, it is a template file that you can revise it to fit your needs.
Upon the requirements from programmers, I have [...]]]></description>
			<content:encoded><![CDATA[<p>Programmers require that they want see the effect right after they commit their codes and fortunately the SVN system provides such a great tool to do so.</p>
<p>Under /repository name/hooks/, there is a file called post-commit.tmpl, it is a template file that you can revise it to fit your needs.</p>
<p>Upon the requirements from programmers, I have implemented two post commit scripts:</p>
<p>1) the website and the SVN server&nbsp; reside in the same machine<br />
2) the website and the SVN server&nbsp; reside in two different machine</p>
<p>
</p>
]]></content:encoded>
			<wfw:commentRss>http://zft.backupdiy.com/2007/10/16/post-commit/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Avoid using the &#8220;same&#8221; name in SVN repository</title>
		<link>http://zft.backupdiy.com/2007/05/23/avoid-using-the-same-name-in-svn-repository/</link>
		<comments>http://zft.backupdiy.com/2007/05/23/avoid-using-the-same-name-in-svn-repository/#comments</comments>
		<pubDate>Wed, 23 May 2007 21:25:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>SVN</dc:subject>
	<dc:subject>Linux Admin</dc:subject>
		<guid isPermaLink="false">http://zft.backupdiy.com/2007/05/23/avoid-using-the-same-name-in-svn-repository/</guid>
		<description><![CDATA[In Linux, the file name is case-sensitive whereas in Windows it is not.
When I commit two files like &#34;file.php&#34; and &#34;File.php&#34; under Linux, it is ok. However, when I update it under Windows, it cause problem.

]]></description>
			<content:encoded><![CDATA[<p>In Linux, the file name is case-sensitive whereas in Windows it is not.</p>
<p>When I commit two files like &quot;file.php&quot; and &quot;File.php&quot; under Linux, it is ok. However, when I update it under Windows, it cause problem.
</p>
]]></content:encoded>
			<wfw:commentRss>http://zft.backupdiy.com/2007/05/23/avoid-using-the-same-name-in-svn-repository/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Got error message when using SVN client</title>
		<link>http://zft.backupdiy.com/2007/04/01/got-error-message-when-using-svn-client/</link>
		<comments>http://zft.backupdiy.com/2007/04/01/got-error-message-when-using-svn-client/#comments</comments>
		<pubDate>Mon, 02 Apr 2007 01:52:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>SVN</dc:subject>
		<guid isPermaLink="false">http://zft.backupdiy.com/2007/04/01/got-error-message-when-using-svn-client/</guid>
		<description><![CDATA[
Can&#8217;t set position pointer in file &#8216;/path/to/repos/db/revs/0&#8242;: Invalid argument
This message stuck me quite a few days.
The solution is:
Using &#8211;with-apr&#160; and &#8211;with-apr-util when compiling&#160; SVN&#160; AND the paths pointing to&#160; apache&#8217;s&#160; package, namely like this
./configure --with-apxs=/usr/local/apache2/bin/apxs \
&#8211;with-apr=/source/httpd-2.2.4/srclib/apr \
&#8211;with-apr-util=/source/httpd-2.2.4/srclib/apr-util

updated by May 21, 2007
######################################################
 if you got error massage like this:
no XML parser was found: expat or libxml [...]]]></description>
			<content:encoded><![CDATA[<p><code></p>
<p><strong>Can&rsquo;t set position pointer in file &lsquo;/path/to/repos/db/revs/0&prime;: Invalid argument</p>
<p>This message stuck me quite a few days.</p>
<p>The solution is:</p>
<p>Using </strong></code>&#8211;with-apr&nbsp; and &#8211;with-apr-util when compiling&nbsp; SVN&nbsp; <strong>AND</strong> the paths pointing to&nbsp; apache&#8217;s&nbsp; package, namely like this</p>
<p><code>./configure --with-apxs=/usr/local/apache2/bin/apxs \<br />
&#8211;with-apr=/<strong>source</strong>/httpd-2.2.4/srclib/apr \<br />
&#8211;with-apr-util=/<strong>source</strong>/httpd-2.2.4/srclib/apr-util<br />
<strong><br />
updated by May 21, 2007<br />
</strong>######################################################<strong><br />
</strong> if you got error massage like this:</p>
<p>no XML parser was found: expat or libxml 2.x required<br />
configure failed for neon</p>
<p>you can do this first:<br />
</code><code>./configure --with-apxs=/usr/local/apache2/bin/apxs</p>
<p>then re-configure again.</p>
<p>I don&#8217;t know why, it is really weird.<br />
######################################################<br />
</code><code><br />
Notice that folder /source is for my case, you have to change it to your folder where the Apache&#8217;s source resides</p>
<p>Please don&#8217;t forget&nbsp; </p>
<p><strong>make clean</strong></p>
<p>before you</p>
<p>make it again.</p>
<p>
</code>
</p>
]]></content:encoded>
			<wfw:commentRss>http://zft.backupdiy.com/2007/04/01/got-error-message-when-using-svn-client/feed/</wfw:commentRss>
		</item>
		<item>
		<title>setup Subversion server on CentOS/Apache friends</title>
		<link>http://zft.backupdiy.com/2007/03/23/setup-subversion-server-on-centosapache-friends/</link>
		<comments>http://zft.backupdiy.com/2007/03/23/setup-subversion-server-on-centosapache-friends/#comments</comments>
		<pubDate>Sat, 24 Mar 2007 00:28:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>SVN</dc:subject>
	<dc:subject>Linux Admin</dc:subject>
		<guid isPermaLink="false">http://zft.backupdiy.com/2007/03/23/setup-subversion-server-on-centosapache-friends/</guid>
		<description><![CDATA[I have no choice, the company I am working with is currently using CentOS4.4/Apache friends 1.6. But they need SVN.
The little trick is, the apache friends 1.6 could not be compiled with mod_dav_svn.so so that I could not pass the ./configure with &#8211;with-apxs=/opt/lampp/bin/apxs.
Finally, I gave up, compiled Subversion 1.4.3 without apxs. Everything worked fine but [...]]]></description>
			<content:encoded><![CDATA[<p>I have no choice, the company I am working with is currently using CentOS4.4/Apache friends 1.6. But they need SVN.</p>
<p>The little trick is, the apache friends 1.6 could not be compiled with mod_dav_svn.so so that I could not pass the ./configure with &#8211;with-apxs=/opt/lampp/bin/apxs.</p>
<p>Finally, I gave up, compiled Subversion 1.4.3 without apxs. Everything worked fine but the HTTP method.</p>
<p>Then I looked into Apache friends 1.6, I found it comes with Apache 2.2.4. </p>
<p>So I used another machine to compile Apache 2.2.4 like this</p>
<p>#./configure &#8211;enable-dav &#8211;enable-so &#8211;enable-maintainer-mode<br />
#make <br />
#make install</p>
<p>compile Subversion 1.4.3 like this</p>
<p>#./configure &#8211;with-apxs=/usr/local/apache2/bin/apxs<br />
# rm /usr/local/lib/libsvn*<br />
# make clean &amp;&amp; make &amp;&amp; make install</p>
<p>Eventually, I got </p>
<p>mod_dav_svn.so and mod_authz_svn.so</p>
<p>I copied them to /opt/lampp/modules</p>
<p>In /opt/lampp/etc/httpd.conf added two lines like this</p>
<p>LoadModule dav_svn_module&nbsp; modules/mod_dav_svn.so<br />
LoadModule authz_svn_module modules/mod_authz_svn.so</p>
<p>restart lampp, DONE !</p>
<p><strong>Updated on March 28, 2007</strong><br />
Thanks Runge, here are the two files<br />
<a href="http://zft.backupdiy.com/files/mod_dav_svn.so">mod_dav_svn.so</a><br />
<a href="http://zft.backupdiy.com/files/mod_authz_svn.so">mod_authz.svn.so<br />
</a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://zft.backupdiy.com/2007/03/23/setup-subversion-server-on-centosapache-friends/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
