Ruby, Rails and httpd on Fedora 8

October 18th, 2008 | Tagged as , ,

Just a short summary of how to install Ruby on Rails framework on Fedora 8 and how to configure it to work with Apache 2. Perhaps this might come handy to someone.

1. Install Ruby programming language and Rails framework

$ sudo yum install ruby
$ sudo gem install rails  --include-dependencies

2. Install header files and libraries for building extension libraries for Ruby

$sudo yum install ruby-devel

3. Download and install Passenger, an Apache module for deployment Ruby on Rails applications on Apache. When running “passenger-install-apache2-module”, follow the instructions on the screen to solve any problems (the installer is friendly and helpful).

$ sudo gem install passenger
$ passenger-install-apache2-module

4. Create a sample Ruby on Rails application

$ cd ~/public_html
$ rails  demo

5. That’s it, you should now be able to access your Ruby on Rails application on localhost using web browser

Ruby on Rails application on Apache

2 Comments

Stefan
October 19th, 2008 at 20:53

WHOA! you’re over to the Ruby side these days? ;)

ikendra
December 29th, 2008 at 15:00

Not really. It was just a small peek into the wonderful world of Ruby… :)

Your comment

You can post anonymous comments. Some tags are allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>