Tuesday, April 21, 2009

installing ruby, rails, and redmine on Apache & FreeBSD 6

I will elaborate on this if anyone needs it, but for now I just wanted to post my notes from this evening when I got ruby, rails, and redmine running on FreeBSD 6 with Apache 2.2:

1. install ruby

#cd /usr/ports/lang/ruby18/
#make && make install

2. install rails 2.2.2
#cd /usr/ports/www/rubygem-rails
#make && make install

3. install ruby-iconv (rake script for redmine won't run without this)
cd /usr/ports/converters/ruby-iconv/
#make && make install

4. install mysql gem
#/usr/local/bin/gem install mysql

5. install passenger
#cd /usr/ports/www/rubygem-passenger
#make && make install

6. add these lines to your httpd.conf:

LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-2.1.3/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-2.1.3
PassengerRuby /usr/local/bin/ruby18

7. install SVN (we'll need it to export the redmine trunk)
#cd /usr/ports/devel/subversion
#make && make install
#rehash

8. export redmine trunk (note: since we have ruby 2.2.2, we'll need the trunk, not the stable version of redmine.) ** see note below

svn export http://redmine.rubyforge.org/svn/trunk/ redmine

9. follow instructions at: http://www.redmine.org/wiki/redmine/RedmineInstall
10. copy redmine/public/dispatch.fcgi.example to redmine/public/dispatch.fcgi
11. -set up redmine vhost:

#------------------------------------
# redmine.example.com
#----------------------------------
<VirtualHost 192.168.1.100:80>
ServerName redmine.example.com
DocumentRoot /home/www/redmine/public

</VirtualHost>


Now you should be good to go at redmine.example.com!


NOTE:
The version of trunk I exported seemed to have some bugs, so I ended up installing rails 2.1.2 and going with the stable version of redmine by doing:

#gem install rails --version='=2.1.2'
#svn export http://redmine.rubyforge.org/svn/branches/0.8-stable redmine

Thanks to Mat Schaffer for the help on that one

5 comments:

Anonymous said...

酒店經紀PRETTY GIRL 台北酒店經紀人 ,禮服店 酒店兼差PRETTY GIRL酒店公關 酒店小姐 彩色爆米花酒店兼職,酒店工作 彩色爆米花酒店經紀, 酒店上班,酒店工作 PRETTY GIRL酒店喝酒酒店上班 彩色爆米花台北酒店酒店小姐 PRETTY GIRL酒店上班酒店打工PRETTY GIRL酒店打工酒店經紀 彩色爆米花

酒店上班請找艾葳 said...

艾葳酒店經紀公司提供專業的酒店經紀, 酒店上班小姐,八大行業,酒店兼職,傳播妹,或者想要打工兼差打工,兼差,八大行業,酒店兼職,想去酒店上班, 日式酒店,便服店,制服酒店,ktv酒店,禮服店,整天穿得水水漂漂的,還是想去制服店日領上班小姐,水水們如果想要擁有打工工作、晚上兼差工作兼差打工假日兼職兼職工作酒店兼差兼差打工兼差日領工作晚上兼差工作酒店工作酒店上班酒店打工兼職兼差兼差工作酒店上班等,想了解酒店相關工作特種行業內容,想兼職工作日領假日兼職兼差打工、或晚班兼職想擁有鋼琴酒吧又有保障的工作嗎???又可以現領請找專業又有保障的艾葳酒店經紀公司!

艾葳酒店經紀是合法的公司工作環境高雅時尚,無業績壓力,無脫秀無喝酒壓力,高層次會員制客源,工作輕鬆,可日領現領
一般的酒店經紀只會在水水們第一次上班和領薪水時出現而已,對水水們的上班安全一點保障都沒有!艾葳酒店經紀公司的水水們上班時全程媽咪作陪,不需擔心!只提供最優質的酒店上班,酒店上班,酒店打工環境、上班條件給水水們。心動嗎!? 趕快來填寫你的酒店上班履歷表

水水們妳有缺現領、想要兼職、有缺錢的煩腦嗎?想到日本留學缺錢嗎?妳是傳播妹??想要擁有高時薪又輕鬆的賺錢,酒店和,假日打工,假日兼職賺錢的機會嗎??想實現夢想卻又缺錢沒錢嗎!??
艾葳酒店台北酒店經紀招兵買馬!!徵專業的酒店打工,想要去酒店的水水,想要短期日領,酒店日領,禮服酒店,制服店,酒店經紀,ktv酒店,便服店,酒店工作,禮服店,酒店小姐,酒店經紀人,
等相關服務 幫您快速的實現您的夢想~!!

Saul Albert said...

Thanks for the howto! Really useful stuff.

For some reason (probably because I was formerly running the webbrick server as root), my session files in /usr/local/www/redmine/tmp/sess/blah were owned by root, which meant that I got a 500 internal server error when I first tried to load redmine via Apache.

I just chowned www:www those session files and it worked like a dream.

Thanks for all your help.

Saul.

qishaya said...

Milan create week ended last night with donatella christian louboutin london disregard presenting the ending show of the autumn christian louboutin online frost 2003 italian collections.Donatella, the creative chief of christian boots the house her delayed brother founded, delivered a collection that was, christian louboutin uk as they say, very christian louboutin shoes.First up was the versus limit, louboutin boots the cheaper christian louboutin line. Girls stomped christian louboutin 2010 out with backcombed tresses bearing turquoise leather trousers, christian louboutin uk sale patchwork pullover and blonde fur sliced into stoles and active jackets. christian boots uk But this aggressive hell’s angels look almost seemed a caricature of the christian louboutin boots christian louboutin boots comfort. louboutin sandals Next up was gianni christian louboutin, buy christian louboutin the main collection

supra shoes said...

really worth reading.