<?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>42 &#187; Passenger</title>
	<atom:link href="http://www.42.mach7x.com/tag/passenger/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.42.mach7x.com</link>
	<description>Thoughts and tips about programming with Ruby on Rails</description>
	<lastBuildDate>Wed, 01 Feb 2012 14:38:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>passenger ArgumentError (invalid byte sequence in US-ASCII)</title>
		<link>http://www.42.mach7x.com/2011/09/12/passenger-argumenterror-invalid-byte-sequence-in-us-ascii/</link>
		<comments>http://www.42.mach7x.com/2011/09/12/passenger-argumenterror-invalid-byte-sequence-in-us-ascii/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 08:17:00 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[Phusion Passenger]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Passenger]]></category>
		<category><![CDATA[redmine]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=404</guid>
		<description><![CDATA[Problem After upgrading your server to use rvm and Ruby 1.9 you get the following error when you are trying to access certain parts of your redmine installation: passenger ArgumentError (invalid byte sequence in US-ASCII) Solution If you follow the instruction posted here, you can add the following to your redmine&#8217;s &#8220;RAILS_ROOT/config/initializers/string_encodings.rb&#8221;: Encoding.default_external = 'UTF-8' [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
After upgrading your server to use rvm and Ruby 1.9 you get the following error when you are trying to access certain parts of your redmine installation:</p>
<p><code>passenger ArgumentError (invalid byte sequence in US-ASCII)</code></p>
<p><strong>Solution</strong><br />
If you follow the instruction posted <a href="http://stackoverflow.com/questions/3597255/why-does-my-sproutcore-development-server-drop-connections-with-invalid-byte-seq/3598303#3598303" title="here">here</a>, you can add the following to your redmine&#8217;s &#8220;RAILS_ROOT/config/initializers/string_encodings.rb&#8221;:</p>
<p><code>Encoding.default_external = 'UTF-8'</code></p>
<p>and restart your application</p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2011/09/12/passenger-argumenterror-invalid-byte-sequence-in-us-ascii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Passenger (mod_rails) gem installation &#8211; Apache2 &#8211; Debian &#8211; rvm</title>
		<link>http://www.42.mach7x.com/2011/09/08/passenger-mod_rails-gem-installation-apache2-debian-rvm/</link>
		<comments>http://www.42.mach7x.com/2011/09/08/passenger-mod_rails-gem-installation-apache2-debian-rvm/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 07:43:01 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Phusion Passenger]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[Passenger]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=400</guid>
		<description><![CDATA[Problem You would like to (re)-install passenger after a system wide rvm installation, but you only have the mod_passenger.c file and not the .so after the gem installation. Solution Make sure that after using gem install passenger you also use the command to install the apache2 passenger module: passenger-install-apache2-module you should then be able to [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
You would like to (re)-install passenger after a system wide rvm installation, but you only have the mod_passenger.c file and not the .so after the gem installation.</p>
<p><strong>Solution</strong><br />
Make sure that after using gem install passenger you also use the command to install the apache2 passenger module:</p>
<p><code>passenger-install-apache2-module</code></p>
<p>you should then be able to see the .so file and add it to your /etc/apache2/mods-available/passenger.load</p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2011/09/08/passenger-mod_rails-gem-installation-apache2-debian-rvm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails Passenger Staging environment problem in Dreamhost</title>
		<link>http://www.42.mach7x.com/2010/09/09/rails-passenger-staging-environment-problem-in-dreamhost/</link>
		<comments>http://www.42.mach7x.com/2010/09/09/rails-passenger-staging-environment-problem-in-dreamhost/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 09:28:07 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Dreamhost]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Phusion Passenger]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Passenger]]></category>
		<category><![CDATA[phusion passenger]]></category>
		<category><![CDATA[Staging]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=226</guid>
		<description><![CDATA[Problem You want to deploy your rails application using Passenger in Dreamhost, but on a staging environment. It doesn&#8217;t work just changing your Capistrano recipe or your environment files, as the default environment for passenger is &#8216;production&#8217;. Solution Looking at the Passenger documentation here, there are four different ways of achieving that by changing the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
You want to deploy your rails application using Passenger in Dreamhost, but on a staging environment. It doesn&#8217;t work just changing your Capistrano recipe or your environment files, as the default environment for passenger is &#8216;production&#8217;.</p>
<p><strong>Solution</strong><br />
Looking at the Passenger documentation <a href="http://www.modrails.com/documentation/Users%20guide%20Apache.html#rails_env">here</a>, there are four different ways of achieving that by changing the RailsEnv option. If you don&#8217;t want to change the Apache configuration files, and as long as the option AllowOverride is on (which should be on Dreamhost), then you would need to create an .htaccess file in your application&#8217;s public folder with the following:</p>
<p><span class="code">RailsEnv staging</span> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2010/09/09/rails-passenger-staging-environment-problem-in-dreamhost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Phusion Passenger installation in Mandriva 2009</title>
		<link>http://www.42.mach7x.com/2009/01/08/phusion-passenger-installation-in-mandriva-2009/</link>
		<comments>http://www.42.mach7x.com/2009/01/08/phusion-passenger-installation-in-mandriva-2009/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 11:30:53 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[Mandriva]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Passenger]]></category>
		<category><![CDATA[phusion passenger]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=71</guid>
		<description><![CDATA[Problem You have recently installed Mandriva 2009 and you want to install phusion passenger. Solution First make sure that apache is installed. If it is not installed (default), do: urpmi apache On the selection question about the dependencies select option 1 (apache-prefork) Use the details from the phusion passenger website. ie: Install passenger: gem install [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
You have recently installed Mandriva 2009 and you want to install phusion passenger.</p>
<p><strong>Solution</strong></p>
<ol>
<li>First make sure that apache is installed. If it is not installed (default), do:
<pre class="code">urpmi apache</pre>
<p>On the selection question about the dependencies select option 1 (apache-prefork)</li>
<li>Use the details from the phusion passenger website. ie:<br />
Install passenger:</p>
<pre class="code">gem install passenger</pre>
</li>
<li>Run the passenger installation:
<pre class="code">passenger-install-apache2-module</pre>
</li>
<li>If at the second stage of the installation the installer complains that <em>GNU C++ compiler &#8230; not found</em>, install the gnu c++ compiler, with:
<pre class="code">urpmi gcc_c++</pre>
</li>
<li>Run the passenger installation (step 3) again. If at this stage the installer complains that <em>Apache 2 development headers &#8230; not found</em>, use:
<pre class="code">urpmi apache-devel</pre>
</li>
<li>Run passenger installer (step 3), once more. Now everything should be ok and the apache 2 module will be installed when the installer finishes.</li>
<li>Restart the Apache webserver, and you should be able to add your Rails application. Use the following to deploy your application in /somewhere/public:
<pre class="code">&lt;VirtualHost *:80&gt;
  ServerName www.yourhost.com
  DocumentRoot /somewhere/public
&lt;/VirtualHost&gt;</pre>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2009/01/08/phusion-passenger-installation-in-mandriva-2009/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dreamhost passenger (mod_rails) announced</title>
		<link>http://www.42.mach7x.com/2008/05/13/dreamhost-passenger-mod_rails-announced/</link>
		<comments>http://www.42.mach7x.com/2008/05/13/dreamhost-passenger-mod_rails-announced/#comments</comments>
		<pubDate>Tue, 13 May 2008 22:09:57 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[Dreamhost]]></category>
		<category><![CDATA[mod_rails]]></category>
		<category><![CDATA[Passenger]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=34</guid>
		<description><![CDATA[Today, there was an announcement about Dreamhost, having the new Passenger (mod_rails) feature ready for use with Ruby on Rails applications. The full announcement is here. It should be changing the way Rails applications are deployed, making it much easier.]]></description>
			<content:encoded><![CDATA[<p>Today, there was an announcement about Dreamhost, having the new Passenger (mod_rails) feature ready for use with Ruby on Rails applications.<br />
The full announcement is <a href="http://www.dreamhoststatus.com/2008/05/13/new-feature-passenger-mod_rails/">here</a>.</p>
<p>It should be changing the way Rails applications are deployed, making it much easier.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2008/05/13/dreamhost-passenger-mod_rails-announced/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

