<?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/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>www.sakuttoly.com &#187; Ruby</title>
	<atom:link href="http://www.sakuttoly.com/blog/tag/ruby/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sakuttoly.com</link>
	<description></description>
	<lastBuildDate>Sun, 10 Apr 2011 13:25:46 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.sakuttoly.com/blog/tag/ruby/feed" />
		<item>
		<title>サクッとCentOS 5.4にRedmine + Passenger環境をインストール</title>
		<link>http://www.sakuttoly.com/blog/2010/04/redmine93_passenger_centos54.html</link>
		<comments>http://www.sakuttoly.com/blog/2010/04/redmine93_passenger_centos54.html#comments</comments>
		<pubDate>Thu, 29 Apr 2010 17:16:53 +0000</pubDate>
		<dc:creator>shirotter</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Redmine]]></category>
		<category><![CDATA[プロジェクト管理]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.sakuttoly.com/?p=718</guid>
		<description><![CDATA[shirotterです。 約1年前にサクッとCentOS 5.3にRedmine + Passenger環境をインストールを書きましたが、ちょうどインストールし直す機会があったので若干の変更をしながら書き直してみました。 [...]]]></description>
			<content:encoded><![CDATA[				<p>shirotterです。</p>
				<p>約1年前に<a href="http://www.sakuttoly.com/blog/2009/04/redmine_passenger_centos.html">サクッとCentOS 5.3にRedmine + Passenger環境をインストール</a>を書きましたが、ちょうどインストールし直す機会があったので若干の変更をしながら書き直してみました。</p>
				<p>前回の記事の改訂版のような扱いですが、下記の点で前回の内容と大きく異なります。</p>
				<ol>
				<li>Redmineのバージョンを0.8.3から0.9.3に変更</li>
				<li>DBをMySQLからPostgreSQLに変更</li>
				<li>Apacheの設定を若干変更</li>
				</ol>
				<p><span class="caution">※ 重要でない標準出力などは前記事のものをそのまま流用しているので一部差異があるかもです。</span></p>
				<p><span id="more-718"></span></p>
				<h3>Redmineのインストール手順</h3>
				<p><a href="http://www.centos.org/">CentOS</a>に<a href="http://redmine.jp/">Redmine</a> + <a href="http://www.postgresql.jp/">PostgreSQL</a> + <a href="http://www.modrails.com/">Passenger</a>環境をインストールする手順は下記のようになります｡</p>
				<ol>
				<li>事前の準備</li>
				<li>PostgreSQLのインストール</li>
				<li>Rubyのソースからのインストール</li>
				<li>Redmineのインストールと初期データの作成</li>
				<li>Passengerのインストールとapacheの設定</li>
				</ol>
				<h3>Redmineのインストール環境</h3>
				<p>今回のインストール環境は以下のようになっています｡</p>
				<table>
				<tr>
				<th>OS</th>
				<td><a href="http://www.centos.org/">CentOS 5.4</a> x86_64</td>
				</tr>
				<tr>
				<th>DB</th>
				<td><a href="http://www.postgresql.jp/">PostgreSQL</a></td>
				</tr>
				<tr>
				<th>HTTPサーバ</th>
				<td><a href="http://httpd.apache.org/">apache</a> + <a href="http://www.modrails.com/">Passenger</a></td>
				</tr>
				<tr>
				<th>Redmineのインストール先</th>
				<td>/home/redmine</td>
				</th>
				</table>
				<h3>インストール開始</h3>
				<h4>事前の準備</h4>
				<p>最初に必要となるモジュールをインストールしておきます。</p>
				<pre class="console">
<span class="command"># yum -y install gcc kernel-devel zlib-devel openssl-devel</span>
</pre>
				<h4>PostgreSQLのインストール</h4>
				<pre class="console">
# <span class="command">yum -y install postgresql-server postgresql-devel
</pre>
				<p><span class="caution">※ 本記事ではPostgreSQLをそのままyumでインストールするように書いていますが、実際に作業を実施した環境では8.4を入れてから作業を行いました。特に設定などの違いは無いと思います。</span></p>
				<p>PostgreSQLの設定の初期化と起動を行います｡</p>
				<pre class="console">
<span class="command"># /etc/init.d/postgresql initdb
# /etc/init.d/postgresql start
</pre>
				<p>ついでにOS起動時にPostgreSQLが起動されるようにも設定します｡</p>
				<pre class="console">
<span class="command"># chkconfig postgresql on
# chkconfig --list postgresql</span>
<span class="so">postgresql          0:off   1:off   2:on    3:on    4:on    5:on    6:off</span>
</pre>
				<p>ここからはPostgreSQLにRedmine用ユーザとDBを作成します。</p>
				<pre class="console">
<span class="caption">// Redmine用ユーザを作成</span>
<span class="command"># sudo -u postgres createuser -U postgres -dEeP</span>
作成するロール名を入力してください: redmine
新しいロールのパスワード：
もう一度入力してください：
新しいロールをスーパーユーザとしますか?  (y/n)n
新しいロールにロールを作成する権限を与えますか? (y/n)n
CREATE ROLE redmine ENCRYPTED PASSWORD 'xxxxxxxx' NOSUPERUSER CREATEDB NOCREATEROLE INHERIT LOGIN;

<span class="caption">// Redmine用DBを作成</span>
<span class="command"># sudo -u postgres createdb -e -U postgres -O redmine redminedb "For redmine"</span>
CREATE DATABASE redminedb OWNER redmine;
COMMENT ON DATABASE redminedb IS 'For redmine';

<span class="command"># sudo -u postgres psql"</span>

<span class="caption">// postgresユーザのパスワードを暗号化して設定</span>
<span class="command">postgres=# alter user postgres with encrypted password 'xxxxxxxx';</span>
ALTER ROLE

<span class="caption">// 暗号化されたパスワードが保存されているか確認</span>
<span class="command">postgres=# select * from pg_shadow;</span>

 usename  | usesysid | usecreatedb | usesuper | usecatupd |       passwd        | valuntil | useconfig
----------+----------+-------------+----------+-----------+---------------------+----------+-----------
 redmine  |    16384 | t           | f        | f         | md5xxxxxxxxxxxxxxxx |          |
 postgres |       10 | t           | t        | t         | md5xxxxxxxxxxxxxxxx |          | 

<span class="command">postgres=# \q</span>
</pre>
				<p>さらにPostgreSQL本体の設定を若干変更しないといけません。</p>
				<pre class="console">
<span class="command"># vi /var/lib/pgsql/data/postgresql.conf</span>

listen_addresses = '*'       <span class="tips"><---- 追加｡</span>

<span class="command"># vi /var/lib/pgsql/data/pg_hba.conf</span>

# "local" is for Unix domain socket connections only
local   all         all                               ident
# IPv4 local connections:
host    all         all         127.0.0.1/32          ident

を以下のように変更

# "local" is for Unix domain socket connections only
local   all         all                               <span class="edit">md5</span>
# IPv4 local connections:
host    all         all         127.0.0.1/32          <span class="edit">md5</span>
</pre>
				<p>これでPostgreSQLの設定は終わりました。</p>
				<p>ここらで疲れてはいけません｡<br />
				まだまだスタートラインに立ったばかりです｡</p>
				<h4>Ruby のソースからのインストール</h4>
				<p>では本題に入っていきましょう｡</p>
				<p>まずは､<br />
				Rubyのインストールです｡<br />
				最新版は<a href="http://www.ruby-lang.org/ja/">ここ</a>からURLを取得してください｡</p>
				<pre class="console">
<span class="command"># wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p249.tar.gz
# tar xzvf ruby-1.8.7-p249.tar.gz
# cd ruby-1.8.7-p249
# ./configure --prefix=/usr
# make
# make test</span>
<span class="so">test succeeded</span>        <span class="tips"><---- makeが成功しているか確かめます</span>
<span class="command"># make install
# ruby -v</span>
<span class="so">ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]</span>
</pre>
				<p>これでRubyはインストール出来ました｡</p>
				<p>次にRubyGemsのインストールです｡<br />
				最新版は<a href="http://rubyforge.org/projects/rubygems/">ここ</a>からURLを取得してください｡</p>
				<pre class="console">
<span class="command"># wget http://rubyforge.org/frs/download.php/69365/rubygems-1.3.6.tgz
# tar xzvf rubygems-1.3.6.tgz
# cd rubygems-1.3.6
# ruby setup.rb
# gem -v</span>
<span class="so">1.3.6</span>
</pre>
				<p>簡単ですね｡<br />
				そして､<a href="http://rubyonrails.org/">Ruby on Rails</a>のインストールとなります｡</p>
				<pre class="console">
<span class="command"># gem update --system
# gem install rails --include-dependencies
# rails -v</span>
<span class="so">Rails 2.3.5</span>
</pre>
				<p>Ruby関連のインストールは全て終わりました｡</p>
				<h4>Redmineのインストール</h4>
				<p>いよいよ<a href="http://redmine.jp/">Redmine</a>の登場です。<br />
				僕は&#8221;/home/redmine&#8221;にインストールしますが､好みに合わせて変更してください｡</p>
				<pre class="console">
<span class="command"># mkdir /home/redmine/
# wget http://rubyforge.org/frs/download.php/69449/redmine-0.9.3.tar.gz
# tar xzvf redmine-0.9.3.tar.gz
# cp -rp redmine-0.9.3/* /home/redmine/</span>

<span class="caption">RedmineのDB設定の変更</span>
<span class="command"># cd /home/redmine/config
# cp -p database.yml.example database.yml
# vi database.yml</span>

production:
  adapter: mysql
  database: redmine
  host: localhost
  username: root
  password:
  encoding: utf8

を以下のように変更

production:
  adapter: <span class="edit">postgresql</span>
  database: <span class="edit">redminedb</span>
  host: localhost
  username: <span class="edit">redmine</span>
  password: <span class="edit">redmineユーザパスワード</span>
  encoding: utf8
  <span class="edit">scheme_search_path: public</span>

<span class="caption">クッキーに書き込まれるセッションデータの為のパスフレーズを設定</span>
<span class="command"># cd /home/redmine/config/environment.rb</span>
? 省略
Rails::Initializer.run do |config|
  config.action_controller.session = { :key => "_myapp_session", :secret => "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" }       <span class="tips">30文字以上の文字列を追加します。</span>
? 省略

<span class="caption">pg gemのインストール</span>
<span class="command">gem install pg</span>

<span class="caption">スキーマの作成</span>
<span class="command"># rake db:migrate RAILS_ENV="production"</span>
</pre>
				<p>これでRedmineのインストールは終了です｡</p>
				<p>試しに<a href="http://redmine.jp/">Redmine</a>を起動してアクセス出来るか試してみましょう。</p>
				<pre class="console">
<span class="command"># cd /home/redmine/
# script/server -e production</span>
<span class="so">=> Booting WEBrick...
=> Rails 2.1.5 application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options</span>
</pre>
				<p>3000番ポートで起動されているので､<br />
				http://localhost:3000/ (ホスト名は適切なものに変更してください)<br />
				にブラウザからアクセスしてみます｡</p>
				<p>すると､</p>
				<div id="attachment_70" class="wp-caption aligncenter" style="width: 309px"><a href="http://www.sakuttoly.com/blog/2009/04/redmine_passenger_centos.html/redmine" rel="attachment wp-att-70"><img src="http://www.sakuttoly.com/wp-content/uploads/2009/04/redmine-299x192.png" alt="RedmineのTOPページ" title="redmine" width="299" height="192" class="size-medium wp-image-70" /></a><p class="wp-caption-text">RedmineのTOPページ</p></div>
				<p>このような画面が表示されるはずです｡</p>
				<p>デフォルトでは､</p>
				<blockquote><p>
				ログイン : admin<br />
				パスワード : admin
				</p></blockquote>
				<p>でログイン出来ます｡</p>
				<p>ログイン出来たら､すでにRedmineを使うことが出来るようになっています｡<br />
				(画像は日本語の画面になっていますが、デフォルトでは英語となっています。設定で言語を変更してください。)</p>
				<p>Redmineを終了するには｢<span class="strong">Ctrl + C</span>｣キーを押します｡</p>
				<h4>Passengerのインストールとapacheの設定</h4>
				<p>これで一通りの作業は終わりましたが､いちいち3000番ポートにアクセスしないといけないのは嫌なので､apache上で動くように設定することにします｡</p>
				<p>apache上で動くようにするにはPassengerと連携させることになります。</p>
				<p>ではPassengerのインストールを行います｡<br />
				まずは必要となるものをインストールします｡</p>
				<pre class="console">
<span class="command"># yum -y install httpd-devel gcc-c++ apr-devel</span>

<span class="caption">Passengerをインストールします｡</span>
<span class="command"># gem install passenger
# passenger-install-apache2-module</span>
</pre>
				<p><span class="strong">Press Enter to continue, or Ctrl-C to abort.</span><br />
				と言われるのでEnterを押して続行します｡</p>
				<p>すると､</p>
				<pre class="console">
<span class="so">--------------------------------------------

Checking for required software...

 * GNU C++ compiler... found at /usr/bin/g++
 * Ruby development headers... found
 * OpenSSL support for Ruby... found
 * RubyGems... found
 * Rake... found at /usr/bin/rake
 * Apache 2... found at /usr/sbin/httpd
 * Apache 2 development headers... found at /usr/sbin/apxs
 * fastthread... found
 * Apache Portable Runtime (APR) development headers... found at /usr/bin/apr-1-config
 * Apache Portable Runtime Utility (APU) development headers... found at /usr/bin/apu-1-config

--------------------------------------------</span>
</pre>
				<p>というようなものが表示されます｡</p>
				<p>これは必要なモジュールが揃っている状態の表示ですが､何か1つでもモジュールが不足しているとこの画面で怒られてしまいます。<br />
				(必要なモジュールのインストール方法を後で教えてくれますが・・・)</p>
				<pre class="console">
<span class="so">--------------------------------------------
The Apache 2 module was successfully installed.

Please edit your Apache configuration file, and add these lines:
</span>
   LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/ext/apache2/mod_passenger.so
   PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11
   PassengerRuby /usr/bin/ruby
<span class="so">
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 continue.</span>
</pre>
				<p>こんな画面が表示されて一端止まります｡</p>
				<blockquote><p>
				LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/ext/apache2/mod_passenger.so<br />
				PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11<br />
				PassengerRuby /usr/bin/ruby
				</p></blockquote>
				<p>の部分は後で必要になってくるので､<br />
				どこかにメモを取っておく必要があります｡</p>
				<p>メモを取ったらEnter</p>
				<pre class="console">
<span class="so">--------------------------------------------
Deploying a Ruby on Rails application: an example

Suppose you have a Ruby on Rails application in /somewhere. Add a virtual host
to your Apache configuration file, and set its DocumentRoot to
/somewhere/public, like this:
</span>
   &lt;VirtualHost *:80&gt;
      ServerName www.yourhost.com
      DocumentRoot /somewhere/public    # &lt;-- be sure to point to 'public'!
      &lt;Directory /somewhere/public&gt;
         AllowOverride all              # &lt;-- relax Apache security settings
         Options -MultiViews            # &lt;-- MultiViews must be turned off
      &lt;/Directory&gt;
   &lt;/VirtualHost&gt;

<span class="so">And that's it! You may also want to check the Users Guide for security and
optimization tips and other useful information:

  /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/doc/Users guide Apache.html

Enjoy Phusion Passenger, a product of Phusion (www.phusion.nl) <img src='http://www.sakuttoly.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> 

http://www.modrails.com/

Phusion Passenger is a trademark of Hongli Lai &#038; Ninh Bui.</span>
</pre>
				<p>そして､こんな表示になって終了します｡</p>
				<p>ここでも</p>
				<blockquote><p>
				&lt;VirtualHost *:80&gt;<br />
				   ServerName www.yourhost.com<br />
				   DocumentRoot /somewhere/public    # &lt;&#8211; be sure to point to &#8216;public&#8217;!<br />
				   &lt;Directory /somewhere/public&gt;<br />
				      AllowOverride all              # &lt;&#8211; relax Apache security settings<br />
				      Options -MultiViews            # &lt;&#8211; MultiViews must be turned off<br />
				   &lt;/Directory&gt;<br />
				&lt;/VirtualHost&gt;
				</p></blockquote>
				<p>の部分をメモに取っておきましょう｡</p>
				<p>メモを取った内容を参考にapacheの設定を行います｡</p>
				<p>まずはpassenger用の設定ファイルを用意します｡</p>
				<pre class="console">
<span class="command"># cd /etc/httpd/conf.d/</span>
<span class="caption">新規にconfファイルを作成</span>
<span class="command"># vi passenger.conf</span>
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11
PassengerRuby /usr/bin/ruby
</pre>
				<p>次にhttpd.confの設定です｡</p>
				<pre class="console">
<span class="command"># cd /etc/httpd/conf
# vi httpd.conf</span>
以下を追加

&lt;VirtualHost *:80&gt;
   ServerName www.example.com
   DocumentRoot /var/www/html
   RailsBaseURI /redmine
   ErrorLog /var/log/httpd/redmine_error.log                  &lt;---- エラーログ出力先を変更
   CustomLog /var/log/httpd/redmine_access.log combined       &lt;---- アクセスログ出力先を変更
   &lt;Directory /var/www/html&gt;
      AllowOverride all
      Options -MultiViews
   &lt;/Directory&gt;
&lt;/VirtualHost&gt;

<span class="caption">// Apacheの設定に問題が無いか確認</span>
<span class="command"># /etc/init.d/httpd configtest</span>
Syntax OK
</pre>
				<p>Redmineのルートディレクトリへのシンボリックリンクを&#8221;/var/www/html&#8221;に作成します。</p>
				<pre class="console">
<span class="command"># cd /var/www/html/
# ln -s /home/redmine/public/ redmine</span>
</pre>
				<p>Apacheがシステムの起動時に自動起動するように設定します。</p>
				<pre class="console">
<span class="command"># chkconfig httpd on
# chkconfig --list httpd</span>
<span class="so">httpd          0:off   1:off   2:on    3:on    4:on    5:on    6:off</span>
</pre>
				<p>残るはRedmineのファイルのパーミッションの設定のみです｡</p>
				<pre class="console">
<span class="command"># chown -R apache:apache /home/redmine</span>
</pre>
				<p>あとはapacheを起動してみましょう｡</p>
				<pre class="console">
<span class="command"># /etc/rc.d/init.d/httpd start</span>
</pre>
				<p>これで､<br />
				<span class="strong">http://(httpd.confに入れたホスト名)/redmine/</span><br />
				にアクセスすればRedmineに繋がるはずです｡</p>
				<p>Redmineのインストール作業は以上となります｡</p>
				<p><a href="http://www.sakuttoly.com/blog/2009/04/redmine_passenger_centos.html">前回の記事</a>の焼き直しですが、困っている方の参考になれば・・・</p>
				<h3>使用したソフトウェアのバージョン</h3>
				<table>
				<tr>
				<th>CentOS</th>
				<td>5.4 x86_64</td>
				</tr>
				<tr>
				<th>PostgreSQL</th>
				<td>8.4.3</td>
				</tr>
				<tr>
				<th>Ruby</th>
				<td>1.8.7-p-249</td>
				</tr>
				<tr>
				<th>RubyGems</th>
				<td>1.3.6</td>
				</tr>
				<tr>
				<th>Ruby on Rails</th>
				<td>2.3.5</td>
				</tr>
				<tr>
				<th>Redmine</th>
				<td>0.9.3</td>
				</tr>
				<tr>
				<th>apache</th>
				<td>2.2.3-31</td>
				</tr>
				<tr>
				<th>Passenger</th>
				<td>2.2.11</td>
				</tr>
				</table>
				<div class="amazlet-box" style="margin-bottom:0px;">
				<div class="amazlet-image" style="float:left;"><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4844327305/sakutto0b-22/ref=nosim/" name="amazletlink" target="_blank"><img src="http://ecx.images-amazon.com/images/I/41TAYyuxIYL._SL160_.jpg" alt="Redmine -もっと手軽にプロジェクト管理!" style="border: none;" /></a></div>
				<div class="amazlet-info" style="float:left;margin-left:15px;line-height:120%">
				<div class="amazlet-name" style="margin-bottom:10px;line-height:120%"><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4844327305/sakutto0b-22/ref=nosim/" name="amazletlink" target="_blank">Redmine -もっと手軽にプロジェクト管理!</a>
				<div class="amazlet-powered-date" style="font-size:7pt;margin-top:5px;font-family:verdana;line-height:120%">posted with <a href="http://www.amazlet.com/browse/ASIN/4844327305/sakutto0b-22/ref=nosim/" title="Redmine -もっと手軽にプロジェクト管理!" target="_blank">amazlet</a> at 10.04.30</div>
				</div>
				<div class="amazlet-detail">倉貫 義人 栗栖 義臣 並河 祐貴 前田 直樹 <br />インプレスジャパン <br />売り上げランキング: 27472</div>
				<div class="amazlet-review" style="margin-top:10px; margin-bottom:10px">
				<div class="amazlet-review-average" style="margin-bottom:5px">おすすめ度の平均: <img src="http://images-jp.amazon.com/images/G/09/x-locale/common/customer-reviews/stars-2-5.gif" alt="2.5" /></div>
				<p><img src="http://images-jp.amazon.com/images/G/09/x-locale/common/customer-reviews/stars-3-0.gif" alt="3" /> インストールには役に立たなかった。<br /><img src="http://images-jp.amazon.com/images/G/09/x-locale/common/customer-reviews/stars-2-0.gif" alt="2" /> 読まなくてもわかる<br /><img src="http://images-jp.amazon.com/images/G/09/x-locale/common/customer-reviews/stars-3-0.gif" alt="3" /> Windowsでサーバの構築</div>
				<div class="amazlet-link" style="margin-top: 5px"><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4844327305/sakutto0b-22/ref=nosim/" name="amazletlink" target="_blank">Amazon.co.jp で詳細を見る</a></div>
				</div>
				<div class="amazlet-footer" style="clear: left"></div>
				</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sakuttoly.com/blog/2010/04/redmine93_passenger_centos54.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.sakuttoly.com/blog/2010/04/redmine93_passenger_centos54.html" />
	</item>
		<item>
		<title>サクッとCentOS 5.3にRedmine + Passenger環境をインストール</title>
		<link>http://www.sakuttoly.com/blog/2009/04/redmine_passenger_centos.html</link>
		<comments>http://www.sakuttoly.com/blog/2009/04/redmine_passenger_centos.html#comments</comments>
		<pubDate>Sat, 25 Apr 2009 10:35:54 +0000</pubDate>
		<dc:creator>shirotter</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Redmine]]></category>
		<category><![CDATA[プロジェクト管理]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.sakuttoly.com/?p=12</guid>
		<description><![CDATA[※ CentOS 5.4 + Redmine 0.9.1でも下記手順でインストール出来ることを確認しました。Redmine 0.9.0 release candidate をCentOS 5.4にインストールの記事も併せ [...]]]></description>
			<content:encoded><![CDATA[				<p><del>※ CentOS 5.4 + Redmine 0.9.1でも下記手順でインストール出来ることを確認しました。<a href="http://www.sakuttoly.com/blog/2010/01/redmine-centos.html">Redmine 0.9.0 release candidate をCentOS 5.4にインストール</a>の記事も併せて参考にしてください。</del></p>
				<p><span class="caution">※ <a href="http://www.sakuttoly.com/blog/2010/04/redmine93_passenger_centos54.html">こちら</a>に本記事よりも新しい環境でインストールした記事を書き直しました。DBはMySQLからPostgreSQLに変更しています。本記事の焼き直しですが、併せて参考にしてください。</span></p>
				<p>はじめまして｡<br />
				shirotterと申します｡</p>
				<p>まだ立ち上げたばかりの<a href="http://www.sakuttoly.com/">サクッとly.com</a>ですが､今後ちょくちょくと技術的なメモを主に掲載していく予定なので､興味のある方はたまに覗いてやってください｡</p>
				<p>今回はLinuxをロクに扱えない僕でも､どうにか一人で<a href="http://www.centos.org/">CentOS</a>に<a href="http://redmine.jp/">Redmine</a>をインストールすることが出来たので､ここにその手順を<span class="strong">サクッと</span>ではなく､なるべく丁寧に載せていきたいと思います｡</p>
				<p><span id="more-12"></span></p>
				<h3><a href="http://redmine.jp/">Redmine</a>のインストール手順</h3>
				<p><a href="http://www.centos.org/">CentOS</a>に<a href="http://redmine.jp/">Redmine</a> + <a href="http://www.mysql.gr.jp/">MySQL</a> + <a href="http://www.modrails.com/">Passenger</a>環境をインストールする手順は下記のようになります｡</p>
				<ol>
				<li>事前の準備</li>
				<li><a href="http://www.mysql.gr.jp/">MySQL</a>のインストール</li>
				<li><a href="http://www.ruby-lang.org/ja/">Ruby</a> のソースからのインストール</li>
				<li><a href="http://redmine.jp/">Redmine</a>のインストールと初期データの作成</li>
				<li><a href="http://www.modrails.com/">Passenger</a>のインストールと<a href="http://httpd.apache.org/">apache</a>の設定</li>
				</ol>
				<h3><a href="http://redmine.jp/">Redmine</a>のインストール環境</h3>
				<p>今回のインストール環境は以下のようになっています｡</p>
				<table>
				<tr>
				<th>OS</th>
				<td><a href="http://www.centos.org/">CentOS 5.3</a> x64</td>
				</tr>
				<tr>
				<th>DB</th>
				<td><a href="http://www.mysql.gr.jp/">MySQL</a></td>
				</tr>
				<tr>
				<th>HTTPサーバ</th>
				<td><a href="http://httpd.apache.org/">apache</a> + <a href="http://www.modrails.com/">Passenger</a></td>
				</tr>
				<tr>
				<th><a href="http://redmine.jp/">Redmine</a>のインストール先</th>
				<td>/home/redmine</td>
				</th>
				</table>
				<p><a href="http://www.centos.org/">CentOS 5.3</a>の64bit版は2009年4月25日現在では最新のもので､</p>
				<pre class="console">
<span class="command"># yum -y update</span>
</pre>
				<p>をインストール後に行っただけの身も心も綺麗な状態です｡</p>
				<p>特に32bit版とインストール手順は大差ないと思いますが､64bit版に入れようとしてうまくいかない方の参考になればと思います｡</p>
				<h3>インストール開始</h3>
				<p>それでは､<br />
				長い前置きよりも更に長いインストール手順の紹介にいきたいと思います｡</p>
				<h4>事前の準備</h4>
				<p>まずは､ソースのコンパイル時に必須となるgccのインストールです｡</p>
				<pre class="console">
<span class="command"># yum -y install gcc</span>
</pre>
				<p>ついでに最初に他に必要になってくるものもインストールしちゃいます｡</p>
				<pre class="console">
<span class="command"># yum -y install kernel-devel zlib-devel openssl-devel</span>
</pre>
				<h4><a href="http://www.mysql.gr.jp/">MySQL</a>のインストール</h4>
				<p>DBには<a href="http://www.mysql.gr.jp/">MySQL</a>を使用するのでインストールします｡</p>
				<pre class="console">
# <span class="command">yum -y install mysql-server
# mysql --version</span>
<span class="so">mysql  Ver 14.12 Distrib 5.0.45, for redhat-linux-gnu (x86_64) using readline 5.0</span>
</pre>
				<p><a href="http://www.mysql.gr.jp/">MySQL</a>の設定の初期設定を行います｡</p>
				<pre class="console">
<span class="command"># cp -p /usr/share/mysql/my-medium.cnf /etc/my.cnf</span>        <span class="tips"><---- my-xxxx.cnfは使用する環境に合わせてsmall?hugeに変更してください</span>
<span class="command"># vi /etc/my.cnf</span>

[mysqld]
port            = 3306
socket          = /var/lib/mysql/mysql.sock
    ? 略 ?
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
<span class="edit">default-character-set = utf8</span>        <span class="tips"><---- 追加｡デフォルトの文字コードをUTF-8にします</span>

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
<span class="edit">default-character-set = utf8</span>        <span class="tips"><---- ここにも追加｡デフォルトの文字コードをUTF-8にします｡</span>
</pre>
				<p>デフォルトの文字コードをUTF-8にするのは必須ではありません｡<br />
				DB作成時に文字コードを指定してやれば良いはずです｡</p>
				<p>初期設定はこれくらいで<a href="http://www.mysql.gr.jp/">MySQL</a>を起動します｡<br />
				ついでにOS起動時に<a href="http://www.mysql.gr.jp/">MySQL</a>が起動されるようにも設定します｡</p>
				<pre class="console">
<span class="command"># /etc/rc.d/init.d/mysqld start
# chkconfig mysqld on
# chkconfig --list mysqld</span>
<span class="so">mysqld          0:off   1:off   2:on    3:on    4:on    5:on    6:off</span>
</pre>
				<p>ここからは<a href="http://www.mysql.gr.jp/">MySQL</a>にログインして設定｡</p>
				<pre class="console">
<span class="command"># mysql -u root
mysql> select user, host, password from mysql.user;</span>
<span class="so">+------+-----------------------+----------+
| user | host                  | password |
+------+-----------------------+----------+
| root | localhost             |          |
| root | localhost.localdomain |          |
| root | 127.0.0.1             |          |
+------+-----------------------+----------+
3 rows in set (0.00 sec)
</span>
<span class="caption">MySQLのrootユーザにパスワードを設定します</span>
<span class="command">mysql> set password for root@localhost=password('パスワード');
mysql> set password for root@'localhost.localdomain'=password('パスワード');
mysql> set password for root@127.0.0.1=password('パスワード');</span>

<span class="caption">パスワードが設定されているか確認します｡</span>
<span class="command">mysql> select user, host, password from mysql.user;</span>
<span class="so">
+------+-----------------------+-------------------------------------------+
| user | host                  | password                                  |
+------+-----------------------+-------------------------------------------+
| root | localhost             | *ハッシュ化されたパスワード               |
| root | localhost.localdomain | *ハッシュ化されたパスワード               |
| root | 127.0.0.1             | *ハッシュ化されたパスワード               |
+------+-----------------------+-------------------------------------------+
3 rows in set (0.00 sec)
</span>
<span class="caption">redmineユーザを作成します｡</span>
<span class="command">mysql> grant all on *.* to redmine@"localhost"identified by 'redmineユーザパスワード';</span>        <span class="tips"><---- root権限を持たせちゃってます</span>
<span class="tips">こちらのコマンドでもいける模様｡お好きな方をどうぞ♪</span>
<span class="command">mysql> grant all privileges on redmine.* to redmine@localhost identified by 'redmineユーザパスワード';</span>
<span class="so">Query OK, 0 rows affected (0.01 sec)</span>

<span class="command">mysql> exit</span>

<span class="caption">rootユーザからログアウトして､redmineユーザで再度ログイン</span>
<span class="command"># mysql -u redmine -p</span>
<span class="so">Enter password: xxxxxx(redmineパスワード)</span>

<span class="caption">Redmine用のDBを作成</span>
<span class="command">mysql> create database redmine;</span>
<span class="so">Query OK, 1 row affected (0.00 sec)</span>

<span class="caption">DBが出来ているか確認</span>
<span class="command">mysql> show create database redmine;</span>
<span class="so">
+----------+------------------------------------------------------------------+
| Database | Create Database                                                  |
+----------+------------------------------------------------------------------+
| redmine  | CREATE DATABASE `redmine` /*!40100 DEFAULT CHARACTER SET utf8 */ |
+----------+------------------------------------------------------------------+
1 row in set (0.00 sec)
</span>
<span class="command">mysql> exit</span>
</pre>
				<p>これで<a href="http://www.mysql.gr.jp/">MySQL</a>の設定(Redmine用のDBの作成)は終わり｡<br />
				ここらで疲れてはいけません｡<br />
				まだまだスタートラインに立ったばかりです｡</p>
				<h4><a href="http://www.ruby-lang.org/ja/">Ruby</a> のソースからのインストール</h4>
				<p>では本題に入っていきましょう｡</p>
				<p>まずは､<br />
				<a href="http://www.ruby-lang.org/ja/">Ruby</a>のインストールです｡<br />
				最新版は<a href="http://www.ruby-lang.org/ja/">ここ</a>からURLを取得してください｡</p>
				<pre class="console">
<span class="command"># cd /usr/local/src/
# wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p160.tar.gz
# tar xzvf ruby-1.8.7-p160.tar.gz
# cd ruby-1.8.7-p160
# ./configure --prefix=/usr
# make
# make test</span>
<span class="so">test succeeded</span>        <span class="tips"><---- makeが成功しているか確かめましょう!!</span>
<span class="command"># make install
# ruby -v</span>
<span class="so">ruby 1.8.7 (2009-04-08 patchlevel 160) [x86_64-linux]</span>
</pre>
				<p>これで<a href="http://www.ruby-lang.org/ja/">Ruby</a>はインストール出来ました｡</p>
				<p>次に<a href="http://rubyforge.org/projects/rubygems/">RubyGems</a>のインストールです｡<br />
				最新版は<a href="http://rubyforge.org/frs/?group_id=126&#038;release_id=33411">ここ</a>からURLを取得してください｡</p>
				<pre class="console">
<span class="command"># cd /usr/local/src
# wget http://rubyforge.org/frs/?group_id=126&#038;release_id=33411
# tar xzvf rubygems-1.3.2.tgz
# cd rubygems-1.3.2
# ruby setup.rb
# gem -v</span>
<span class="so">1.3.2</span>
</pre>
				<p>簡単ですね｡<br />
				そして､<a href="http://rubyonrails.org/">Ruby on Rails</a>のインストールとなります｡</p>
				<pre class="console">
<span class="command"># gem update --system
# gem install rails --include-dependencies
# rails -v</span>
<span class="so">Rails 2.3.2</span>
</pre>
				<p><a href="http://www.ruby-lang.org/ja/">Ruby</a>関連のインストールは全て終わりました｡</p>
				<h4><a href="http://redmine.jp/">Redmine</a>のインストールと初期データの作成</h4>
				<p>いよいよ<a href="http://redmine.jp/">Redmine</a>の登場です!!<br />
				僕は&#8221;/home/redmine&#8221;にインストールしますが､好みに合わせて変更してください｡</p>
				<pre class="console">
<span class="command"># mkdir /home/redmine/
# cd /usr/local/src/
# wget http://rubyforge.org/frs/download.php/54503/redmine-0.8.3.tar.gz
# tar xzvf redmine-0.8.3.tar.gz
# cp -rp redmine-0.8.3/* /home/redmine/</span>

<span class="caption">RedmineのDBスキーマ作成と初期データの登録</span>
<span class="command"># cd /home/redmine/config
# cp -p database.yml.example database.yml
# vi database.yml</span>

production:
  adapter: mysql
  database: redmine
  host: localhost
  username: root
  password:
  encoding: utf8

を以下のように変更

production:
  adapter: mysql
  database: redmine
  host: localhost
  username: <span class="edit">redmine</span>
  password: <span class="edit">redmineユーザパスワード</span>
  encoding: utf8
  <span class="edit">socket: /var/lib/mysql/mysql.sock</span>        <span class="tips"><---- 追加するのを忘れずに!!</span>

<span class="caption">スキーマの作成</span>
<span class="command"># rake db:migrate RAILS_ENV="production"</span>

<span class="caption">初期データの登録</span>
<span class="command"># rake load_default_data RAILS_ENV="production"</span>
<span class="caption">使用言語に日本語を選択</span>
<span class="so">Select language: bg, ca, cs, da, de, en, es, fi, fr, he, hu, it, ja, ko, lt, nl, no, pl, pt, pt-br, ro, ru, sk, sr, sv, th, tr, uk, vn, zh, zh-tw [en] ja</span>
</pre>
				<p>これで<a href="http://redmine.jp/">Redmine</a>のインストール自体は終了です｡</p>
				<p><span class="caution">※ スキーマの作成でエラーが出る場合には、<a href="http://www.sakuttoly.com/blog/2010/01/redmine-centos.html">Redmine 0.9.0 release candidate をCentOS 5.4にインストール</a>を参考にしてみてください。</span></p>
				<p>試しに<a href="http://redmine.jp/">Redmine</a>を起動してアクセス出来るか試してみましょう!!</p>
				<pre class="console">
<span class="command"># cd /home/redmine/
# script/server -e production</span>
<span class="so">=> Booting WEBrick...
=> Rails 2.1.2 application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options</span>
</pre>
				<p>3000番ポートで起動されているので､<br />
				http://localhost:3000/ (ホスト名は適切なものに変更してください)<br />
				にブラウザからアクセスしてみます｡</p>
				<p>すると､</p>
				<div id="attachment_70" class="wp-caption aligncenter" style="width: 309px"><a href="http://www.sakuttoly.com/blog/2009/04/redmine_passenger_centos.html/redmine" rel="attachment wp-att-70"><img src="http://www.sakuttoly.com/wp-content/uploads/2009/04/redmine-299x192.png" alt="RedmineのTOPページ" title="redmine" width="299" height="192" class="size-medium wp-image-70" /></a><p class="wp-caption-text">RedmineのTOPページ</p></div>
				<p>このような画面が表示されるはずです｡</p>
				<p>デフォルトでは､</p>
				<blockquote><p>
				ログイン : admin<br />
				パスワード : admin
				</p></blockquote>
				<p>でログイン出来ます｡</p>
				<p>ログイン出来たら､すでに<a href="http://redmine.jp/">Redmine</a>を使うことが出来るようになっています｡<br />
				<a href="http://redmine.jp/">Redmine</a>を終了するには｢<span class="strong">Ctrl + C</span>｣キーを押します｡</p>
				<h4><a href="http://www.modrails.com/">Passenger</a>のインストールと<a href="http://httpd.apache.org/">apache</a>の設定</h4>
				<p>これで一通りの作業は終わりましたが､いちいち3000番ポートにアクセスしないといけないのは嫌なので､<a href="http://httpd.apache.org/">apache</a>上で動くように設定することにします｡</p>
				<p><a href="http://httpd.apache.org/">apache</a>上で動くようにするには､<a href="http://mongrel.rubyforge.org/">Mongrel</a>というものが有名だそうですが､最近は<a href="http://www.modrails.com/">Passenger</a>というものがオススメみたいなので今回は<a href="http://www.modrails.com/">Passenger</a>と連携させることにします｡</p>
				<p><a href="http://mongrel.rubyforge.org/">Mongrel</a>に対する<a href="http://www.modrails.com/">Passenger</a>のメリットは<a href="http://redmine.jp/tech_note/apache-passenger/">こちら</a>を参照してください｡</p>
				<p>では<a href="http://www.modrails.com/">Passenger</a>のインストールを行います｡<br />
				まずは必要となるものをインストールします｡</p>
				<pre class="console">
<span class="command"># yum -y install httpd-devel gcc-c++ apr-devel</span>

<span class="caption">Passengerをインストールします｡</span>
<span class="command"># gem install passenger
# passenger-install-apache2-module</span>
</pre>
				<p><span class="strong">Press Enter to continue, or Ctrl-C to abort.</span><br />
				と言われるのでEnterを押して続行します｡</p>
				<p>すると､</p>
				<pre class="console">
<span class="so">--------------------------------------------

Checking for required software...

 * GNU C++ compiler... found at /usr/bin/g++
 * Ruby development headers... found
 * OpenSSL support for Ruby... found
 * RubyGems... found
 * Rake... found at /usr/bin/rake
 * Apache 2... found at /usr/sbin/httpd
 * Apache 2 development headers... found at /usr/sbin/apxs
 * fastthread... found
 * Apache Portable Runtime (APR) development headers... found at /usr/bin/apr-1-config
 * Apache Portable Runtime Utility (APU) development headers... found at /usr/bin/apu-1-config

--------------------------------------------</span>
</pre>
				<p>というようなものが表示されます｡</p>
				<p>これは必要なモジュールが揃っている状態の表示ですが､何か1つでもモジュールが不足しているとこの画面で怒られちゃいます｡<br />
				(でも､必要なモジュールのインストール方法を後で教えてくれるツンデレ仕様 <img src='http://www.sakuttoly.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  )</p>
				<pre class="console">
<span class="so">--------------------------------------------
The Apache 2 module was successfully installed.

Please edit your Apache configuration file, and add these lines:
</span>
   LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/ext/apache2/mod_passenger.so
   PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1
   PassengerRuby /usr/bin/ruby
<span class="so">
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 continue.</span>
</pre>
				<p>こんな画面が表示されて一端止まります｡</p>
				<blockquote><p>
				LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/ext/apache2/mod_passenger.so<br />
				PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1<br />
				PassengerRuby /usr/bin/ruby
				</p></blockquote>
				<p>の部分は後で必要になってくるので､<br />
				どこかにメモを取っておく必要があります｡</p>
				<p>メモを取ったらEnter</p>
				<pre class="console">
<span class="so">--------------------------------------------
Deploying a Ruby on Rails application: an example

Suppose you have a Ruby on Rails application in /somewhere. Add a virtual host
to your Apache configuration file, and set its DocumentRoot to
/somewhere/public, like this:
</span>
   &lt;VirtualHost *:80&gt;
      ServerName www.yourhost.com
      DocumentRoot /somewhere/public    # <-- be sure to point to 'public'!
   &lt;/VirtualHost&gt;

<span class="so">And that's it! You may also want to check the Users Guide for security and
optimization tips and other useful information:

  /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/doc/Users guide Apache.html

Enjoy Phusion Passenger, a product of Phusion (www.phusion.nl) <img src='http://www.sakuttoly.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> 

http://www.modrails.com/

Phusion Passenger is a trademark of Hongli Lai &#038; Ninh Bui.</span>
</pre>
				<p>そして､こんな表示になって終了します｡</p>
				<p>ここでも</p>
				<blockquote><p>
				&lt;VirtualHost *:80&gt;<br />
				      ServerName www.yourhost.com<br />
				      DocumentRoot /somewhere/public    # <-- be sure to point to 'public'!<br />
				&lt;/VirtualHost&gt;
				</p></blockquote>
				<p>の部分をメモに取っておきましょう｡</p>
				<p>メモを取った内容を参考に<a href="http://httpd.apache.org/">apache</a>の設定を行います｡</p>
				<p>まずはpassenger用の設定ファイルを用意します｡</p>
				<pre class="console">
<span class="command"># cd /etc/httpd/conf.d/</span>
<span class="caption">新規にconfファイルを作成</span>
<span class="command"># vi passenger.conf</span>
   LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/ext/apache2/mod_passenger.so
   PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1
   PassengerRuby /usr/bin/ruby
</pre>
				<p>次にhttpd.confの設定です｡</p>
				<pre class="console">
<span class="command"># cd /etc/httpd/conf
# vi httpd.conf</span>
以下を末尾に追加

   &lt;VirtualHost *:80&gt;
      ServerName ホスト名(分からない場合はIPを直に入れてしまえ!!)
      DocumentRoot /home/redmine/public        <span class="tips"><---- publicディレクトリを指定すること!!</span>
   &lt;/VirtualHost&gt;
</pre>
				<p>残るは<a href="http://redmine.jp/">Redmine</a>のファイルのパーミッションの設定のみです｡</p>
				<pre class="console">
<span class="command"># cd /home/redmine
# chown -R apache:apache files log tmp config/environment.rb</span>
</pre>
				<p>あとは<a href="http://httpd.apache.org/">apache</a>を起動してみましょう｡</p>
				<pre class="console">
<span class="command"># /etc/rc.d/init.d/httpd start</span>
</pre>
				<p>これで､<br />
				<span class="strong">http://(httpd.confに入れたホスト名)/</span><br />
				にアクセスすれば<a href="http://redmine.jp/">Redmine</a>に繋がるはずです｡</p>
				<p><a href="http://redmine.jp/">Redmine</a>のインストール作業は以上となります｡<br />
				それでは<a href="http://redmine.jp/">Redmine</a>を使い倒してください｡</p>
				<h3>使用したソフトウェアのバージョン</h3>
				<table>
				<tr>
				<th>CentOS</th>
				<td>5.3 x64</td>
				<td>5.4 x64</td>
				</tr>
				<tr>
				<th>MySQL</th>
				<td>5.0.45</td>
				<td>5.0.77</td>
				</tr>
				<tr>
				<th>Ruby</th>
				<td>1.8.7-p-160</td>
				<td>1.8.7-p-248</td>
				</tr>
				<tr>
				<th>RubyGems</th>
				<td>1.3.2</td>
				<td>1.3.5</td>
				</tr>
				<tr>
				<th>Ruby on Rails</th>
				<td>2.3.2</td>
				<td>2.3.5</td>
				</tr>
				<tr>
				<th>Redmine</th>
				<td>0.8.3</td>
				<td>0.9.1</td>
				</tr>
				<tr>
				<th>apache</th>
				<td>2.2.3-22</td>
				<td>2.2.3-31</td>
				</tr>
				<tr>
				<th>Passenger</th>
				<td>2.2.1</td>
				<td>2.2.9</td>
				</tr>
				</table>
				<h3>参考文献</h3>
				<ul>
				<li><a href="http://redmine.jp/guide/RedmineInstall">Redmineのインストール</a></li>
				<li><a href="http://urobonyu.u-andme.net/index.php/2007/08/01/224">UrobonyuのSprawlな脳の記録 &#8211; CentOS に Ruby on Rails</a></li>
				<li>
				<a href="http://urobonyu.u-andme.net/index.php/2007/08/01/225">UrobonyuのSprawlな脳の記録 &#8211; CentOS にプロジェクト管理ソフトの redMine をインストール</a></li>
				<div class="amazlet-box" style="margin-bottom:0px;">
				<div class="amazlet-image" style="float:left;"><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4798021377/sakutto0b-22/ref=nosim/" name="amazletlink" target="_blank"><img src="http://ecx.images-amazon.com/images/I/41vBIvHrjfL._SL160_.jpg" alt="入門Redmine Linux/Windows対応" style="border: none;" /></a></div>
				<div class="amazlet-info" style="float:left;margin-left:15px;line-height:120%">
				<div class="amazlet-name" style="margin-bottom:10px;line-height:120%"><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4798021377/sakutto0b-22/ref=nosim/" name="amazletlink" target="_blank">入門Redmine Linux/Windows対応</a>
				<div class="amazlet-powered-date" style="font-size:7pt;margin-top:5px;font-family:verdana;line-height:120%">posted with <a href="http://www.amazlet.com/browse/ASIN/4798021377/sakutto0b-22/ref=nosim/" title="入門Redmine Linux/Windows対応" target="_blank">amazlet</a> at 09.05.23</div>
				</div>
				<div class="amazlet-detail">前田 剛 <br />秀和システム <br />売り上げランキング: 6710</div>
				<div class="amazlet-review" style="margin-top:10px; margin-bottom:10px">
				<div class="amazlet-review-average" style="margin-bottom:5px">おすすめ度の平均: <img src="http://images-jp.amazon.com/images/G/09/x-locale/common/customer-reviews/stars-3-5.gif" alt="3.5" /></div>
				<p><img src="http://images-jp.amazon.com/images/G/09/x-locale/common/customer-reviews/stars-3-0.gif" alt="3" /> むむむ。。。<br /><img src="http://images-jp.amazon.com/images/G/09/x-locale/common/customer-reviews/stars-4-0.gif" alt="4" /> 導入まではこれでバッチリ</div>
				<div class="amazlet-link" style="margin-top: 5px"><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4798021377/sakutto0b-22/ref=nosim/" name="amazletlink" target="_blank">Amazon.co.jp で詳細を見る</a></div>
				</div>
				<div class="amazlet-footer" style="clear: left"></div>
				</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sakuttoly.com/blog/2009/04/redmine_passenger_centos.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.sakuttoly.com/blog/2009/04/redmine_passenger_centos.html" />
	</item>
	</channel>
</rss>

