lusid
Verified User
Hey everyone,
This is a quick howto for installing Ruby on Rails on a Fedora Core 3 system running DirectAdmin. These are the steps I have taken, and it works beautifully for what I need. Now that I have it working, I believe my next goal is to create a nice Ruby on Rails plugin for DA (because Ruby on Rails is the shizat). Anyways, after DA does their install, this is all you have to do to get Rails up and going:
$ sudo yum install ruby ruby-devel rdoc irb
(Note: Say yes to any dependencies that may come up.)
Next, download, uncompress, and install the latest tarball for RubyGems from this page: http://rubyforge.org/frs/?group_id=126
$ cd /usr/local/src
$ wget http://rubyforge.org/frs/download.php/3700/rubygems-0.8.10.tgz
$ tar zxvf rubygems-0.8.10
$ cd rubygems-0.8.10
$ ruby setup.rb
Next, use RubyGems to pull down the latest rails.
$ sudo gem install rails
(Note: Say yes to any dependencies that may come up.)
Now you have everything you need to make Ruby on Rails work for a domain. For this example, I'm going to use a domain under the admin account called example.com.
$ su admin
$ cd /home/admin/domains/example.com
$ rails rails_app
$ mv public_html old_public_html
$ ln -s rails_app/public public_html
Now here's the most important part. SuExec doesn't like that rails creates the public directory with chmod 775, so we need to set it to chmod 755.
$ cd rails_app
$ chmod 755 public
And you're done! Now going to example.com will take you to the Rails congratulations page. Now all you need to do is remove the index.html file, create your controllers/models, configure your routes, configure your database file, and you're off! (this whole last paragraph is standard Ruby on Rails stuff, and goes beyond the scope of this howto).
Please let me know if this has helped you! RoR forever baby!
This is a quick howto for installing Ruby on Rails on a Fedora Core 3 system running DirectAdmin. These are the steps I have taken, and it works beautifully for what I need. Now that I have it working, I believe my next goal is to create a nice Ruby on Rails plugin for DA (because Ruby on Rails is the shizat). Anyways, after DA does their install, this is all you have to do to get Rails up and going:
$ sudo yum install ruby ruby-devel rdoc irb
(Note: Say yes to any dependencies that may come up.)
Next, download, uncompress, and install the latest tarball for RubyGems from this page: http://rubyforge.org/frs/?group_id=126
$ cd /usr/local/src
$ wget http://rubyforge.org/frs/download.php/3700/rubygems-0.8.10.tgz
$ tar zxvf rubygems-0.8.10
$ cd rubygems-0.8.10
$ ruby setup.rb
Next, use RubyGems to pull down the latest rails.
$ sudo gem install rails
(Note: Say yes to any dependencies that may come up.)
Now you have everything you need to make Ruby on Rails work for a domain. For this example, I'm going to use a domain under the admin account called example.com.
$ su admin
$ cd /home/admin/domains/example.com
$ rails rails_app
$ mv public_html old_public_html
$ ln -s rails_app/public public_html
Now here's the most important part. SuExec doesn't like that rails creates the public directory with chmod 775, so we need to set it to chmod 755.
$ cd rails_app
$ chmod 755 public
And you're done! Now going to example.com will take you to the Rails congratulations page. Now all you need to do is remove the index.html file, create your controllers/models, configure your routes, configure your database file, and you're off! (this whole last paragraph is standard Ruby on Rails stuff, and goes beyond the scope of this howto).
Please let me know if this has helped you! RoR forever baby!