<?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>Oh!HappyBlog@VPS &#187; Passenger</title>
	<atom:link href="http://ohhappy.org/blog/tag/passenger/feed" rel="self" type="application/rss+xml" />
	<link>http://ohhappy.org</link>
	<description>さくらのVPSでWordPressブログはじめました</description>
	<lastBuildDate>Mon, 23 Jan 2012 20:35:50 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Ubuntu11.10にインストールしたRedmine1.2.1をApache2 + Passengerで動かす</title>
		<link>http://ohhappy.org/blog/linux/412.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ubuntu11-10%25e3%2581%25ab%25e3%2582%25a4%25e3%2583%25b3%25e3%2582%25b9%25e3%2583%2588%25e3%2583%25bc%25e3%2583%25ab%25e3%2581%2597%25e3%2581%259fredmine1-2-1%25e3%2582%2592apache2-passenger%25e3%2581%25a7%25e5%258b%2595%25e3%2581%258b%25e3%2581%2599</link>
		<comments>http://ohhappy.org/blog/linux/412.html#comments</comments>
		<pubDate>Mon, 17 Oct 2011 20:57:36 +0000</pubDate>
		<dc:creator>ohhappy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Passenger]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Redmine]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://ohhappy.org/?p=412</guid>
		<description><![CDATA[Ubuntu11.10にインストールした 「Ruby on Railsで記述された、オープンソース(GPL)のプロジェクト管理ソフトウェア」である「Redmine1.2.1 」をApache2 + Passenger（R [...]]]></description>
			<content:encoded><![CDATA[<p>
Ubuntu11.10にインストールした 「Ruby on Railsで記述された、オープンソース(GPL)のプロジェクト管理ソフトウェア」である「<a href="http://redmine.jp/redmine_today/2011/07/13/redmine-1_2_1-released/" target="_blank">Redmine1.2.1</a> 」をApache2 + Passenger（Railsアプリケーションを実行するためのApacheモジュール）で動かしてみました。</p>

<h3>事前準備</h3>
<ul>
	<li>「g++」と「apache2-threaded-dev」をインストールしました。
<pre>
$ sudo apt-get install g++ apache2-threaded-dev
</pre>


</li>
</ul>


<h3>Passengerのインストール</h3>
<ul>
	<li>gemで、passengerをインストールしました。
<pre>
$ sudo gem install passenger
</pre>


</li>
<li>続いて、gemで、passengerのapache2-moduleをインストールしました。
<pre>
$ sudo passenger-install-apache2-module
:
 * To install Curl development headers with SSL support:
   Please run apt-get install libcurl4-openssl-dev or libcurl4-gnutls-dev, whichever you prefer.
:
$ sudo apt-get install libcurl4-openssl-dev
$ sudo passenger-install-apache2-module
The Apache 2 module was successfully installed.
Please edit your Apache configuration file, and add these lines:

   LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-3.0.9/ext/apache2/mod_passenger.so
   PassengerRoot /var/lib/gems/1.8/gems/passenger-3.0.9
   PassengerRuby /usr/bin/ruby1.8

After you restart Apache, you are ready to deploy any number of Ruby on Rails
applications on Apache, without any further Ruby on Rails-specific
configuration!

Press ENTER to contin
$
</pre>


</li>

<li>以上でPassengerのインストールは、終了しました。</li>
</ul>

<h3>RedmineをApache2 + Passengerで動かす設定</h3>
<ul>
	<li>/etc/hostsをエディタ（nano）で編集し、以下の内容を追加しました。
<pre>
$ sudo nano /etc/hosts
</pre>


</li>
<li>【 /etc/hostsの内容 】
<pre>
127.0.1.1       ubuntu.redmine.local
</pre>


</li>
	<li>下記コマンドを実行して、ネットワークを再起動しました。
<pre>
$ sudo /etc/init.d/networking restart
</pre>


</li>
	<li>/etc/apache2/apache2.confをエディタで編集し以下の内容を追加しました。
<pre>
$ sudo nano /etc/apache2/apache2.conf
</pre>


</li>
	<li>【 /etc/apache2/apache2.confへの追加内容 】
<pre>
# passenger
LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-3.0.9/ext/apache2/mod_passenger.so
PassengerRoot /var/lib/gems/1.8/gems/passenger-3.0.9
PassengerRuby /usr/bin/ruby1.8

&lt;VirtualHost *:80&gt;
     ServerName ubuntu.redmine.local
     DocumentRoot /home/ohhappy/RailsProjects/redmine/public
     &lt;Directory /&gt;
     Options FollowSymlinks
     AllowOverride None
     Order deny,allow
     &lt;/Directory&gt;
&lt;/VirtualHost&gt;
</pre>


</li>
	<li>以下のコマンドを実行し、apache2を再起動しました。
<pre>
$ sudo service apache2 restart
</pre>


</li>
<li>ブラウザで「http://ubuntu.redmine.local/」にアクセスし、Redmineが正常に動作することを確認しました。<br />
<a href="http://ohhappy.org/wp-content/uploads/2011/10/redmine-passenger.png"><img src="http://ohhappy.org/wp-content/uploads/2011/10/redmine-passenger-300x207.png" alt="" title="redmine-passenger" width="300" height="207" class="alignnone size-medium wp-image-418" /></a>
</li>
</ul>
<hr size=1>
<iframe src="http://rcm-jp.amazon.co.jp/e/cm?t=ohhappy0b-22&#038;o=9&#038;p=8&#038;l=as1&#038;asins=4844327305&#038;ref=tf_til&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
<hr size=1>]]></content:encoded>
			<wfw:commentRss>http://ohhappy.org/blog/linux/412.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

