<?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>UH.LEE.KA &#187; Phusion Passenger</title>
	<atom:link href="http://www.uhleeka.com/blog/tag/phusion-passenger/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.uhleeka.com/blog</link>
	<description>If you think nobody cares about you, try missing a few car payments.</description>
	<lastBuildDate>Wed, 25 Aug 2010 01:35:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ruby on Rails Ubuntu 8.10: Installing Phusion Passenger</title>
		<link>http://www.uhleeka.com/blog/2009/02/ruby-on-rails-ubuntu-810-installing-phusion-passenger/</link>
		<comments>http://www.uhleeka.com/blog/2009/02/ruby-on-rails-ubuntu-810-installing-phusion-passenger/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 01:32:55 +0000</pubDate>
		<dc:creator>uhleeka</dc:creator>
				<category><![CDATA[Installs and Configs]]></category>
		<category><![CDATA[Phusion Passenger]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.uhleeka.com/blog/?p=209</guid>
		<description><![CDATA[Phusion Passenger™ — a.k.a. mod_rails or mod_rack — makes deployment of Ruby web applications, such as those built on the revolutionary Ruby on Rails web framework, a breeze. It follows the usual Ruby on Rails conventions, such as “Don’t-Repeat-Yourself”. After setting up Ubuntu 8.10 and installing Rails, I executed the following steps to get Passenger [...]]]></description>
			<content:encoded><![CDATA[<div style="float:left;width:93px;height:93px;margin:8px 8px 0px 0px;border:solid 1px #600;background-color:#000;background-repeat:no-repeat;background-position: 0 center;background-image:url('http://www.uhleeka.com/blog/wp-content/uploads/2009/02/passenger.png');"></div>
<p><a href="http://www.modrails.com" target="_blank">Phusion Passenger™</a> — a.k.a. mod_rails or mod_rack — makes deployment of Ruby web applications, such as those built on the revolutionary Ruby on Rails web framework, a breeze. It follows the usual Ruby on Rails conventions, such as “Don’t-Repeat-Yourself”.</p>
<p>After setting up Ubuntu 8.10 and installing Rails, I executed the following steps to get Passenger installed.  <span id="more-209"></span></p>
<p>Install <a href="http://www.modrails.com" target="_blank">Phusion Passenger</a>:</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>sudo gem install passenger
sudo passenger-install-apache2-module</pre></div></div>

<p>Upon success, passenger should return you the following response:</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>The Apache 2 module was successfully installed.

Please edit your Apache configuration file, and add these lines:
    LoadModule passenger_module 
        /usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/ext/apache2/mod_passenger.so
    PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.0.6
    PassengerRuby /usr/bin/ruby1.8</pre></div></div>

<p>To do as passenger instructs:</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>sudo vi /etc/apache2/sites-enabled/000-default</pre></div></div>

<p>Opening that file, I added the &#8220;ServerName&#8221; at the beginning and Rails/Passenger items at the end of the file.  I also cleaned up some of the spacing (for cleanliness sake).</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>&lt;VirtualHost *:80&gt;
    ServerName glenfiddich-u.parallel21.com
    ServerAdmin webmaster@localhost

    DocumentRoot /var/www

    &lt;Directory /&gt;
        Options FollowSymLinks
        AllowOverride None
    &lt;/Directory&gt;
    &lt;Directory /var/www/&gt;
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
    &lt;/Directory&gt;

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    &lt;Directory &quot;/usr/lib/cgi-bin&quot;&gt;
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    &lt;/Directory&gt;

    ErrorLog /var/log/apache2/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /var/log/apache2/access.log combined

    Alias /doc/ &quot;/usr/share/doc/&quot;

    &lt;Directory &quot;/usr/share/doc/&quot;&gt;
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    &lt;/Directory&gt;

    RailsEnv development
		
    LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/ext/apache2/mod_passenger.so
    PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.0.6
    PassengerRuby /usr/bin/ruby1.8
&lt;/VirtualHost&gt;</pre></div></div>

<p>The last thing to do is restart Apache:</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>sudo /etc/init.d/apache2 restart</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.uhleeka.com/blog/2009/02/ruby-on-rails-ubuntu-810-installing-phusion-passenger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

