<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Adrian Smith&#039;s Blog &#187; berkeleydb</title>
	<atom:link href="http://www.17od.com/tag/berkeleydb/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.17od.com</link>
	<description></description>
	<lastBuildDate>Sun, 20 Nov 2011 20:04:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Installing BerkeleyDB, Apache &amp; Subversion on Debian 3 (woody)</title>
		<link>http://www.17od.com/2005/03/26/installing-berkeleydb-apache-subversion-on-debian-3-woody/</link>
		<comments>http://www.17od.com/2005/03/26/installing-berkeleydb-apache-subversion-on-debian-3-woody/#comments</comments>
		<pubDate>Sun, 27 Mar 2005 04:35:42 +0000</pubDate>
		<dc:creator>Adrian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[berkeleydb]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://70.103.16.167/~onesevod/?p=9</guid>
		<description><![CDATA[Install Berkeley DB Go to http://www.sleepycat.com/download/index.shtml and download BerkeleyDB 4.2.52 Download the patches numbered like this patch.4.2.52.? Extract the BerkeleyDB compressed file Copy all the patch files into the base directory just extracted Apply the patches individually using&#8230;patch -p0 &#60; [patchfile] cd into the build_unix directory in the extracted directory Run&#8230;../dist/configure Run&#8230;make Ensure you&#8217;re logged [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Install Berkeley DB</strong></p>
<ol>
<li>Go to http://www.sleepycat.com/download/index.shtml and download BerkeleyDB 4.2.52</li>
<li>Download the patches numbered like this  <em>patch.4.2.52.?</em></li>
<li>Extract the BerkeleyDB compressed file</li>
<li>Copy all the patch files into the base directory just extracted</li>
<li>Apply the patches individually using&#8230;<em>patch -p0 &lt; [patchfile]</em></li>
<li>cd into the <em>build_unix</em> directory in the extracted directory</li>
<li>Run&#8230;<em>../dist/configure</em></li>
<li>Run&#8230;<em>make</em></li>
<li>Ensure you&#8217;re logged in as root and run&#8230;<em>make install</em> (installs to /usr/local/BerkeleyDB.4.2)</li>
<li>Add the line <em>/usr/local/BerkeleyDB.4.2/lib</em> to the file<em>/etc/ld.so.conf</em></li>
<li>Run <em>ldconfig</em> to update the library cache with the BerkeleyDB libraries</li>
</ol>
<p><strong>Install Apache</strong></p>
<ol>
<li>Ensure that the following packages are installed. If they&#8217;re not just do an <em>apt-get install</em> to download and install them&#8230;<em>autoconf libtool openssl libssl-dev zlib1g zlib1g-dev</em></li>
<li>Download tha latest version of Apache 2 from http://httpd.apache.org/download.cgi</li>
<li>Extract the Apache compressed file</li>
<li>cd in the extracted directory</li>
<li>Run&#8230;<em>./configure &#8211;enable-dav &#8211;enable-so &#8211;enable-ssl &#8211;with-dbm=db4 &#8211;with-berkeley-db=/usr/local/BerkeleyDB.4.2 &#8211;enable-deflate</em></li>
<li>Run&#8230;<em>make</em></li>
<li>Ensure you&#8217;re logged in as root and run&#8230;<em>make install</em> (installs to /usr/local/apache2)</li>
<li>Edit the file <em>/usr/local/apache2/conf/httpd.conf</em> and update the <em>User</em> &#038; <em>Group</em> tags to <em>www-data</em> (Assuming of course that you have that user &#038; group)</li>
</ol>
<p><strong>Install Subversion</strong></p>
<ol>
<li>Download the latest version of Subversion from http://subversion.tigris.org/getting_subversion.html</li>
<li>Extract the Subversion compressed file</li>
<li>Run&#8230;<em>./configure &#8211;with-ssl &#8211;with-berkeley-db=/usr/local/BerkeleyDB.4.2 &#8211;with-zlib</em></li>
<li>Run&#8230;<em>make</em></li>
<li>Ensure you&#8217;re logged in as root and run&#8230;<em>make install</em></li>
</ol>
<p><strong>Configure Apache &#038; Subversion</strong></p>
<ol>
<li>Create a directory to hold your repositories, something like <em>/usr/local/svn</em></li>
<li>Change the ownership on the directory to the <em>www-user</em> user (or whoever you set the User tag to in httpd.conf)</li>
<li>Add users to Apache using this command&#8230;<em>htpasswd -cm /etc/svn-auth-file &lt;name&gt;</em>. Leave out the <em>c</em> switch if the file already exists</li>
<li>Add the following section to <em>/usr/local/apache2/conf/httpd.conf</em>
<pre>LoadModule dav_svn_module     modules/mod_dav_svn.so
DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio
LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
CustomLog logs/deflate_log deflate

&lt;Location /svn&gt;
DAV svn
SVNParentPath /usr/local/svn
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/svn-auth-file
Require valid-user
SetOutputFilter DEFLATE
SetInputFilter DEFLATE
&lt;/Location&gt;
</pre>
<p>These config entries will password protect your repositry and allow for data sent between clients and Apache to be compressed</li>
</ol>
<p><strong>Starting Apache</strong></p>
<ol>
<li>Ensure you&#8217;re logged in as root and run&#8230;<em>/usr/local/apache2/bin/apachectl start</em></li>
</ol>
<p>The next step is to try and get Apache using SSL because Basic authentication uses plain text when transmitting the password from the client to the server. <a href="http://tortoisesvn.tigris.org/docs/TortoiseSVN_en/ch03.html#tsvn-serversetup-apache-6">This</a> article seems to do the trick.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.17od.com/2005/03/26/installing-berkeleydb-apache-subversion-on-debian-3-woody/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

