Ruby / Rails installation on CentOS

Hi,

We have a new dedicated server currently running CentOS, PHP, Apache
and MySQL. We'd like to install Ruby, Rails and Lighttpd (or Mongrel)
on it without breaking Apache and PHP. We have an experienced sysadmin
but he has never worked with Ruby / Rails before.

Are there any good tutorials out there on how to go about installing
Ruby, Rails, Lighty on CentOS? Also, any tips from group members who
did this in the past would be of great help!

Thanks so much.

Best,

Gabor

Don't run RoR next to PHP :wink: I've actually had some bad experiences
doing this in hybrid environments. Mongrel can eat a lot of juice.

I've only done this with Apache and Mongrel, not lighty and Mongrel,
but you should know that on CentOS there are some peculiarities
related to the installation of the MySQL adapter and libraries from
the Gem Repository.

What version of CentOS 5 are you installing with? I can't help you
with a tutorial, but I can give you tips on this based on my
experience, because I've been doing this a lot since CentOS 3 (I've
done RoR installs on every distro 3-5)

Dan

Hi,

We have a new dedicated server currently running CentOS, PHP, Apache
and MySQL. We'd like to install Ruby, Rails and Lighttpd (or Mongrel)
on it without breaking Apache and PHP. We have an experienced sysadmin
but he has never worked with Ruby / Rails before.

Are there any good tutorials out there on how to go about installing
Ruby, Rails, Lighty on CentOS? Also, any tips from group members who
did this in the past would be of great help!

the link at:
http://wiki.rubyonrails.org/rails/pages/Rails+on+CentOS+4.4+with+Apache+and+FastCGI+Simply

has installation for CentOS 4.4.

Scroll down to the Ruby, fastcgi, and MySQL part.

It's pretty much the same for all Linux's

1) Install Ruby(and supporting libs) via your distro's preferred
method, in your case rpm.
2) Install ruby gems by downloading, un-tarring, run setup.rb.
3) Install Rails via gems.

The trick is, when installing ruby, to make sure you get the
supporting ruby libs. These seem to be packaged differently in every
distro.

With a fast connection I can get Rails installed on Linux in 10 or so
minutes. It took a little longer the first time.

Good luck,

Sean

> We have a new dedicated server currently running CentOS, PHP, Apache
> and MySQL. We'd like to install Ruby, Rails and Lighttpd (or Mongrel)
> on it without breaking Apache and PHP. We have an experienced sysadmin
> but he has never worked with Ruby / Rails before.

Also, look at RubyWorks (http://rubyworks.rubyforge.com).
Even though it's at 0.0.1 now, it installs on CentOS 4, and is built
for people like your sysadmin.