<?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>Schadenfreude &#187; apache</title>
	<atom:link href="http://www.ralree.com/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ralree.com</link>
	<description>Malicious enjoyment derived from observing someone else's misfortune</description>
	<lastBuildDate>Sun, 28 Feb 2010 04:18:37 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Making Wordpress live in a subdirectory</title>
		<link>http://www.ralree.com/2009/02/18/making-wordpress-live-in-a-subdirectory/</link>
		<comments>http://www.ralree.com/2009/02/18/making-wordpress-live-in-a-subdirectory/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 15:08:26 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[blogs]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.ralree.com/?p=22174</guid>
		<description><![CDATA[I found an interesting article today about Wordpress.  It was how to make it live in another directory. I needed that, so I followed the instructions, and it worked.  Wordpress is so much easier to install and configure than Mephisto.  It&#8217;s even easier to use than Mephisto.  I can see almost no reason anyone [...]]]></description>
			<content:encoded><![CDATA[<p>I found an interesting article today about Wordpress.  It was how to <a href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">make it live in another directory.</a> I needed that, so I followed the instructions, and it worked.  Wordpress is so much easier to install and configure than Mephisto.  It&#8217;s even easier to use than Mephisto.  I can see almost no reason anyone would want to use Mephisto anymore, other than nostalgia &#8211; Wordpress has really cleaned up its act.  It seems the most recent public vulnerabilities to it were apparently <a title="way back in 2.3" href="http://blogsecurity.net/2007/05/27/blogwatch/">way back in 2.3</a> (I&#8217;m on 2.8).  So, I recommend my readers either get some hosting and start their own installation, or jump over to <a href="http://www.wordpress.com">Wordpress.com</a> and make one of their own!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2009/02/18/making-wordpress-live-in-a-subdirectory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How I converted Typo to Mephisto</title>
		<link>http://www.ralree.com/2007/02/22/how-i-converted-typo-to-mephisto/</link>
		<comments>http://www.ralree.com/2007/02/22/how-i-converted-typo-to-mephisto/#comments</comments>
		<pubDate>Thu, 22 Feb 2007 04:13:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[irb]]></category>
		<category><![CDATA[mephisto]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[site5]]></category>
		<category><![CDATA[typo]]></category>
		<category><![CDATA[yaml]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/how-i-converted-typo-to-mephisto</guid>
		<description><![CDATA[I had some difficulty along the way, and I have some fixes for those of you who are having trouble converting.  I found that Mephisto is actually very friendly to the ./script/console hacker.  Also, though it took a while to actually get a response, I ended up getting direct help from technoweenie in [...]]]></description>
			<content:encoded><![CDATA[<p>I had some difficulty along the way, and I have some fixes for those of you who are having trouble converting.  I found that Mephisto is actually very friendly to the <strong>./script/console</strong> hacker.  Also, though it took a while to actually get a response, I ended up getting direct help from technoweenie in <strong>#mephisto@irc.freenode.net</strong>, which was a big help.  So, here&#8217;s the situation:</p>
<p>My current host is <a href="http://www.site5.com/affiliates/idevaffiliate.php?id=1570">Site5</a>.  I have gems set up in my home directory, and I have rails 1.2.2 installed as a gem.  I tried using it, but just ended up freezing edge rails because I ran into some trouble.  I created a db, subdomain, and .htaccess entry for the site.  Then, I actually checked it out:</p>
<pre><code>
svn co http://svn.techno-weenie.net/projects/mephisto/trunk mephisto
</code></pre>
<p>Then, I created <strong>config/database.yml</strong>.  Here&#8217;s a template you can use:</p>
<pre><code>
development:
  adapter: mysql
  database: mephisto
  username: meph
  password: &lt;new-pw&gt;
  host: localhost

production:
  adapter: mysql
  database: mephisto
  username: meph
  password: &lt;new-pw&gt;
  host: localhost

typo:
  adapter: mysql
  database: typo
  username: typo
  password: &lt;typo-pass&gt;
  host: localhost
</code></pre>
<p>Next, I installed tzinfo as a gem to my home directory, and froze it in the project root:</p>
<pre><code>
gem install tzinfo
cd mephisto
rake gems:freeze GEM=tzinfo
</code></pre>
<p>Finally, it&#8217;s time to fill the database with stuff:</p>
<pre><code>
rake db:bootstrap
</code></pre>
<p>Now that that&#8217;s done, for CGI and FastCGI to work, we need a <strong>.htaccess</strong> file in <strong>public</strong>:</p>
<pre><code>
AddHandler fastcgi-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI

RewriteEngine On

RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]

ErrorDocument 500 "&lt;h2&gt;Application error&lt;/h2&gt;Rails application failed to start properly"
</code></pre>
<p>Notice I left it as <strong>dispatch.cgi</strong>.  It&#8217;s up to you, but while I was still converting I left it like this since it didn&#8217;t want to run with FastCGI.</p>
<p>Let&#8217;s make sure log and public can be read and, if need be, written to:</p>
<pre><code>
chmod -R 755 public log
</code></pre>
<p>And finally, the moment we&#8217;ve all be waiting for:</p>
<pre><code>
script/runner "Mephisto.convert_from :typo" -e production
</code></pre>
<p>This connects to the Typo database and runs a converter script in Mephisto&#8217;s <strong>vendor/plugins/</strong> directory.  It takes all the attributes Typo articles and users and comments had and converts them to Mephisto form.  Rockin&#8217;.</p>
<h2>Old Typo Woes</h2>
<p>I did this with Typo trunk <strong>v1246</strong> with migration level <strong>55.</strong>  If you are at a similar Typo state, then you may definitely want to continue reading as the next steps I took will be necessary for you as well.</p>
<p>First of all, I saw that my Markdown with SmartyPants formatting was not being interpreted at all!  This was, of course, easy to fix because Mephisto is awesome:</p>
<pre><code>
./script/console
# Don't do this unless you ALWAYS used Markdown with SmartyPants
# Refer to vendor/plugins/filtered_column if you use Textile or straight up Markdown
# It's just a different a.filter= line below.
Article.find(:all).each {|a|a.filter='smartypants_filter';a.save};1
</code></pre>
<p>What this does is find all the Mephisto articles and set their filter to Markdown with SmartyPants.  The 1 on the end just prevents it from spewing every article to the console.</p>
<p>Now here&#8217;s where I ran into some trouble.  Typo has changed its Tag storage technique at least twice, and the way my tags happened to be stored is as follows:</p>
<pre><code>
articles
 - id
articles_tags
 - article_id
 - tag_id
tags
 - id
 - name
</code></pre>
<p>Someone else had posted a small loop to cure another type of Typo tagging scheme, where there was just one tag grouping string per article.  I ran that.  <strong>Don&#8217;t do that.</strong></p>
<p>I noticed that each one of my articles only had one tag, which made me a sad monkey.  To remedy this, I wrote a small loop to find all the tags of a Typo article and set them up for the same article in Mephisto.  Now, since the id&#8217;s on articles and tags are not kept constant in the conversion scripts, this was a bit tricky.  Luckily, I never have duplicate permalinks (I guess that means I&#8217;m creative&#8230;).</p>
<p>First, you have to enable the Typo converter in the console.  I did this by adding these 2 lines to the bottom of <strong>vendor/plugins/mephisto_converters/init.rb</strong>:</p>
<pre><code>
require "converters/base"
require "converters/typo"
</code></pre>
<p>Then, it&#8217;s simply a case of the following:</p>
<pre><code>
./script/console
# Remove All Mephisto Taggings as to not make dupes
Tagging.find(:all).each{|t|t.destroy}
# Loop through every Typo article
#    Find the associated Mephisto article
#    Loop through all the Typo Tags
#      Append each tag to the Mephisto tag array
Typo::Article.find(:all).each do |ta|
  a = Article.find_by_permalink(ta.permalink)
  ta.tags(true).collect{|b|b.name}.each do |tag|
    a.tags(true) &lt;&lt; Tag.find_by_name(tag)
  end
end
</code></pre>
<p>Don&#8217;t forget to remove the <strong>requires</strong> you put into <strong>init.rb</strong> above.  Once you do that, you should have a nicely running Typo -> Mephisto conversion.  <strong><em>Congratulations!</strong></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2007/02/22/how-i-converted-typo-to-mephisto/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fixed httpd hangings</title>
		<link>http://www.ralree.com/2006/06/23/fixed-httpd-hangings/</link>
		<comments>http://www.ralree.com/2006/06/23/fixed-httpd-hangings/#comments</comments>
		<pubDate>Fri, 23 Jun 2006 02:34:30 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/fixed-httpd-hangings</guid>
		<description><![CDATA[So, Apache (httpd) was hanging for some reason, and it was really perplexing.  I turned on the mod_status stuff and looked at the results, and found that the hung processes were caused when requests went to certain Subversion repositories.  All I had to do was svnadmin recover them, and all was well.  [...]]]></description>
			<content:encoded><![CDATA[<p>So, Apache (httpd) was hanging for some reason, and it was really perplexing.  I turned on the mod_status stuff and looked at the results, and found that the hung processes were caused when requests went to certain Subversion repositories.  All I had to do was svnadmin recover them, and all was well.  </p>
<p>Otherwise, I found an interesting function for ruby today&#8230;</p>
<div class="CodeRay">
<div class="code">
<pre><code>
<span class="c">#number_with_delimiter(number, delimiter)</span>
number_with_delimiter(<span class="i">2000000</span>)
</code></pre>
</div>
</div>
<p>Makes 2000000 look like 2,000,000.  Amazing!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2006/06/23/fixed-httpd-hangings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Successful Settings for Apache forwarding to Mongrel</title>
		<link>http://www.ralree.com/2006/06/15/successful-settings-for-apache-forwarding-to-mongrel/</link>
		<comments>http://www.ralree.com/2006/06/15/successful-settings-for-apache-forwarding-to-mongrel/#comments</comments>
		<pubDate>Thu, 15 Jun 2006 14:14:37 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mongrel]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/successful-settings-for-apache-forwarding-to-mongrel</guid>
		<description><![CDATA[So, after a day of working on it, I finally fixed the problems I was having.  
I wanted to have Apache forward all traffic hitting a path to a mongrel server running in a rails application.  So, I did as bish0p suggested, and set up the rails app to accept this behavior.  [...]]]></description>
			<content:encoded><![CDATA[<p>So, after a day of working on it, I finally fixed the problems I was having.  </p>
<p>I wanted to have Apache forward all traffic hitting a path to a mongrel server running in a rails application.  So, I did as bish0p suggested, and set up the rails app to accept this behavior.  First, I put this at the bottom of my <strong>environment.rb</strong>:</p>
<pre><code>
ActionController::AbstractRequest.relative_url_root = "/MyRailsApp"
</code></pre>
<p>This make it so all the urls in the Rails app are prepended with /MyRailsApp.  Without this, you&#8217;ll get renders that don&#8217;t have stylsheets, javascripts, or anything else that resides in the <em>public</em> directory of rails.</p>
<p>Second, I made a ProxyPass entry in the Apache configuration:</p>
<pre><code>
Redirect /MyRailsApp http://www.example.com/MyRailsApp/
ProxyPass /MyRailsApp/ http://localhost:6402/MyRailsApp/
ProxyPassReverse /MyRailsApp/ http://localhost:6402/MyRailsApp/
</code></pre>
<p>This allows all traffic that goes to /MyRailsApp on the server to be redirected to my mongrel server, which is running on port 6402 (This port does <strong>not</strong> have to be unfirewalled since all the requests are done locally by Apache).</p>
<p>Next, I have to further fix the problem of mongrel not being able to find things in public by making a symlink in public to itself.  Make sure not to just do a link to ../public.  Here&#8217;s an example:</p>
<pre><code>
cd public
mkdir MyRailsApp # This has to be whatever you used in your Apache configuration.
cd MyRailsApp
ln -s ../* . # Link to everything above.
rm MyRailsApp # Get rid of the recursive link.
</code></pre>
<p>Now, just configure your db, application, etc. and start the mongrel server from the root of the application.</p>
<pre><code>
mongrel_rails start -p 6402 -e production -d
</code></pre>
<p>And voila!  You have a working ProxyPass connection from Apache to Mongrel.</p>
<h3>Update:</h3>
<p>Thanks to <a href="http://www.apacheweek.com/features/reverseproxies">this article</a>, I now have mod_deflate running!  It was very easy to install:</p>
<pre><code>
apxs -c -i mod_deflate.c # As Root
</code></pre>
<p>This will install it to your apache installation&#8217;s modules directory.  Now, just add some lines in your config:</p>
<pre><code>
Redirect /MyRailsApp http://www.example.com/MyRailsApp/
ProxyPass /MyRailsApp/ http://localhost:6402/MyRailsApp/
&lt;Location /MyRailsApp&gt;
  ProxyPassReverse /MyRailsApp
  SetOutputFilter INFLATE;proxy-html;DEFLATE
  AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript
&lt;/Location&gt;
</code></pre>
<p>Congratulations, you&#8217;re now deflating your HTML/XML/CSS/JS/PlainText files!  This works on all modern browsers (yes, even Lynx), and <strong>greatly</strong> reduces the size of the files sent.  Here&#8217;s a summary:</p>
<p><strong>Before:</strong> <br/><br />
14.4K:  172.65 seconds <br/><br />
28.8K:  86.32 seconds <br/><br />
33.6K:  73.99 seconds <br/><br />
56K:  44.40 seconds <br/><br />
ISDN 128K:  13.60 seconds <br/><br />
T1 1.44Mbps:  1.18 seconds <br/></p>
<p><strong>After:</strong> <br/><br />
14.4K:  52.27 seconds <br/><br />
28.8K:  26.13 seconds <br/><br />
33.6K:  22.40 seconds <br/><br />
56K:  13.44 seconds <br/><br />
ISDN 128K:  4.12 seconds <br/><br />
T1 1.44Mbps:  0.36 seconds <br/></p>
<p><strong>Roughly <em>3 times as fast</em></strong>!!</p>
<p>Also, it may be possible to leave off a lot of the junk here.  I might have to streamline the configuration some in the following days.  If I&#8217;m right, you won&#8217;t even need the <strong>ActionController</strong> line anymore.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2006/06/15/successful-settings-for-apache-forwarding-to-mongrel/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Collaboa Trunk Install</title>
		<link>http://www.ralree.com/2006/06/14/collaboa-trunk-install/</link>
		<comments>http://www.ralree.com/2006/06/14/collaboa-trunk-install/#comments</comments>
		<pubDate>Wed, 14 Jun 2006 03:54:58 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[collaboa]]></category>
		<category><![CDATA[mongrel]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/collaboa-trunk-install</guid>
		<description><![CDATA[Well, I guess I might as well finish the job as much as I can before bed.  I&#8217;m going to install Collaboa.  Here&#8217;s the beginning:
Get rails and mongrel, along with all the deps:

sudo gem install rails mongrel redcloth syntax sqlite3-ruby xhtmldiff

Now, get ruby-mysql, which requires some junk on FC5:

sudo yum install mysql mysql-devel
sudo [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I guess I might as well finish the job as much as I can before bed.  I&#8217;m going to install Collaboa.  Here&#8217;s the beginning:</p>
<p>Get rails and mongrel, along with all the deps:</p>
<pre><code>
sudo gem install rails mongrel redcloth syntax sqlite3-ruby xhtmldiff
</code></pre>
<p>Now, get ruby-mysql, which requires some junk on FC5:</p>
<pre><code>
sudo yum install mysql mysql-devel
sudo gem install mysql -- --with-mysql-config
</code></pre>
<p>Now, get the trunk:</p>
<pre><code>
svn co http://svn.collaboa.org/svn/collaboa/trunk/ collaboa --username=anon --password=anon
</code></pre>
<p>I&#8217;m going to use SQLLite for this project.  I have to make the database:</p>
<pre><code>
touch db/pdn.db
</code></pre>
<p>Here&#8217;s my database.yml:</p>
<pre><code>
production:
  adapter: sqlite3
  dbfile: db/pdn.db
</code></pre>
<p>Now, I have to tell it where my repositories are (<strong>config/repository.yml</strong>):</p>
<pre><code>
production:
  repos_path: /path/to/repos/hank
</code></pre>
<p>Now that the database and repository files are setup, I have to import the schema and default settings:</p>
<pre><code>
RAILS_ENV="production" rake db_schema_import
RAILS_ENV="production" ruby db/default_content.rb
</code></pre>
<p>Now I finally sync the repository with the database:</p>
<pre><code>
./script/repository_syncer
</code></pre>
<p>Time to start mongrel!</p>
<pre><code>
mongrel_rails start -p 3010
</code></pre>
<p>Now, I redirect the apache server to mongrel when /browse is accessed (I&#8217;m running mongrel on port 3010)(bottom of <strong>conf.d/svn.conf</strong>):</p>
<pre><code>
Redirect /browse  http://example.com/browse
ProxyPass /browse/ http://localhost:3010/browse/
ProxyPassReverse /browse/ http://localhost:3010/browse/
</code></pre>
<h3>NOTEs:</h3>
<ul>
<li>Make sure that <strong>BOTH YOUR PROXYPASS LINES HAVE A FINAL / AT THE END OF EACH ARGUMENT</strong>.  This will solve the <em>redirection limit</em> errors.</li>
<li>Make a symbolic link in <strong>public</strong> to itself, and call it whatever you named the proxypass (in this example, <strong>browse</strong>).  This will stop the no-images/stylesheets madness.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2006/06/14/collaboa-trunk-install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mongrel/WEBrick Forwarding in Apache</title>
		<link>http://www.ralree.com/2006/06/14/mongrel-webrick-forwarding-in-apache/</link>
		<comments>http://www.ralree.com/2006/06/14/mongrel-webrick-forwarding-in-apache/#comments</comments>
		<pubDate>Wed, 14 Jun 2006 02:55:48 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mongrel]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/mongrel-webrick-forwarding-in-apache</guid>
		<description><![CDATA[This will let you redirect an apache request to a local mongrel or webrick server.  Very handy, yet maybe some logging of the used ports would be good at some point.

&#60;VirtualHost collaboa.example.com:80&#62;
  Servername collaboa.example.com
  CustomLog /www/collaboa/logs/access.log combined
  ErrorLog  /www/collaboa/logs/error.log
        ProxyPass / http://127.0.0.1:3005/
  [...]]]></description>
			<content:encoded><![CDATA[<p>This will let you redirect an apache request to a local mongrel or webrick server.  Very handy, yet maybe some logging of the used ports would be good at some point.</p>
<pre><code>
&lt;VirtualHost collaboa.example.com:80&gt;
  Servername collaboa.example.com
  CustomLog /www/collaboa/logs/access.log combined
  ErrorLog  /www/collaboa/logs/error.log
        ProxyPass / http://127.0.0.1:3005/
        ProxyPassReverse / http://127.0.0.1:3005/
&lt;/VirtualHost&gt;
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2006/06/14/mongrel-webrick-forwarding-in-apache/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Building Subversion and Apache Trunks</title>
		<link>http://www.ralree.com/2006/06/14/building-subversion-and-apache-trunks/</link>
		<comments>http://www.ralree.com/2006/06/14/building-subversion-and-apache-trunks/#comments</comments>
		<pubDate>Wed, 14 Jun 2006 02:32:33 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/building-subversion-and-apache-trunks</guid>
		<description><![CDATA[I was trying to move the subversion server today, and found some good tips, but I had some problems today building subversion, so I decided I better write the process down.  While I&#8217;m at it, I better detail the steps to install apache as well.
Apache
Get the trunk, and go to the source library directory:

svn [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to move the subversion server today, and found some <a href="http://dotnot.org/blog/archives/2005/01/13/move-a-subversion-repository-from-one-machine-to-another">good tips,</a> but I had some problems today building subversion, so I decided I better write the process down.  While I&#8217;m at it, I better detail the steps to install apache as well.</p>
<h3>Apache</h3>
<p>Get the trunk, and go to the source library directory:</p>
<pre><code>
svn co http://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x httpd-2.0
cd httpd-2.0/srclib
</code></pre>
<p>Now, check APR out of svn:</p>
<pre><code>
svn co http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x apr
svn co http://svn.apache.org/repos/asf/apr/apr-util/branches/0.9.x apr-util
cd ..
</code></pre>
<p>Build with some awesome options:</p>
<pre><code>
./buildconf
./configure --enable-so --enable-dav --enable-rewrite --enable-ssl --enable-proxy --enable-proxy-http --enable-proxy-connect --enable-proxy-ftp
make
sudo make install
</code></pre>
<p>Make sure to edit the httpd.conf file&#8217;s ServerName and, if necessary, User and Group.  Also, make a conf.d and include it in your config file:</p>
<pre><code>
Include conf.d/*.conf
</code></pre>
<p>Then, make a sweet config file for subversion (<strong>conf.d/svn.conf</strong>):</p>
<pre><code>
&lt;Location /repos&gt;
  DAV svn
  SVNParentPath   /path/to/repos

  AuthType Basic
  AuthName "GINA Beta Subversion Repository"
  AuthUserFile /path/to/repos/svn-auth-file
  AuthGroupFile /path/to/repos/svn-group-file

  # read-only access to repos
  # only authenticated users may modify repos
  &lt;LimitExcept GET PROPFIND OPTIONS REPORT&gt;
    Require group devel
  &lt;/LimitExcept&gt;
  &lt;Limit GET PROPFIND OPTIONS REPORT&gt;
    require valid-user
  &lt;/Limit&gt;
&lt;/Location&gt;

</code></pre>
<h3>Subversion</h3>
<p>Now, just get it:</p>
<pre><code>
svn co http://svn.collab.net/repos/svn/trunk subversion
cd subversion
</code></pre>
<p>Now, get APR again:</p>
<pre><code>
svn co http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x apr
svn co http://svn.apache.org/repos/asf/apr/apr-util/branches/0.9.x apr-util
</code></pre>
<p>Configure it (buildconf first), build it, install it, then do SWiG Ruby stuff:</p>
<pre><code>
./buildconf
./configure --with-apxs=/usr/local/apache2/bin/apxs
make
sudo make install
make swig-rb
make check-swig-rb # This might have some bdb failures.  Who cares?
sudo make install-swig-rb
</code></pre>
<p>Now, it should be up and running.  Next time, Collaboa.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2006/06/14/building-subversion-and-apache-trunks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.399 seconds -->
