# Ruby / Rails installation on CentOS

**URL:** <https://www.ruby-forum.com/t/ruby-rails-installation-on-centos/104918>\
**Category:** Rails\
**Created:** [May 23, 2007, 9:36pm UTC](https://www.ruby-forum.com/t/ruby-rails-installation-on-centos/104918 "2007-05-23T21:36:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabordemeter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/9de053/32.png) [@gabordemeter](https://www.ruby-forum.com/u/gabordemeter)\
**Post date:** [May 23, 2007, 9:36pm UTC](https://www.ruby-forum.com/t/ruby-rails-installation-on-centos/104918/1 "2007-05-23T21:36:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gabordemeter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/9de053/32.png) [@gabordemeter](https://www.ruby-forum.com/u/gabordemeter)\
**Post date:** [May 23, 2007, 9:43pm UTC](https://www.ruby-forum.com/t/ruby-rails-installation-on-centos/104918/2 "2007-05-23T21:43:05Z")

</div>

Don’t run RoR next to PHP 😉 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

---

<div class="post-metadata">

**Author:** ![gabordemeter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/9de053/32.png) [@gabordemeter](https://www.ruby-forum.com/u/gabordemeter)\
**Post date:** [May 23, 2007, 9:53pm UTC](https://www.ruby-forum.com/t/ruby-rails-installation-on-centos/104918/3 "2007-05-23T21:53:07Z")

</div>

On Wed, 2007-05-23 at 12:35 -0700, gabordemeter wrote:

> 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!

* * *

CentOS version?

I am running rails 1.1.6 on CentOS 4 with apache & fcgid in production  
but plan on upgrading system to CentOS 5 when I take my development  
(working on FC-6 with apache 2.2.x & mongrel) into production.

–  
Craig W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![gabordemeter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/9de053/32.png) [@gabordemeter](https://www.ruby-forum.com/u/gabordemeter)\
**Post date:** [May 24, 2007, 9:09am UTC](https://www.ruby-forum.com/t/ruby-rails-installation-on-centos/104918/4 "2007-05-24T09:09:25Z")

</div>

Take a look at [Rails Hosting Info](http://www.railshostinginfo.com/blog) . It describes an  
installation of Rails on CentOS4.

Nick

---

<div class="post-metadata">

**Author:** ![gabordemeter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/9de053/32.png) [@gabordemeter](https://www.ruby-forum.com/u/gabordemeter)\
**Post date:** [May 25, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/ruby-rails-installation-on-centos/104918/5 "2007-05-25T16:25:34Z")

</div>

Daniel Stone wrote:

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

I don’t have any problem to run these two environments together - I even  
have 2 olds projects for which I converted the backoffice to RoR while  
leaving the front web site in PHP

I must confess I used the easiest configuration (at least for me) :  
apache + fcgi

---

<div class="post-metadata">

**Author:** ![gabordemeter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/9de053/32.png) [@gabordemeter](https://www.ruby-forum.com/u/gabordemeter)\
**Post date:** [May 25, 2007, 4:48pm UTC](https://www.ruby-forum.com/t/ruby-rails-installation-on-centos/104918/6 "2007-05-25T16:48:07Z")

</div>

On May 23, 2:35 pm, gabordemeter [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Thanks so much.
> 
> Best,
> 
> Gabor

the link at:  
[http://wiki.rubyonrails.org/rails/pages/Rails+on+CentOS+4.4+with+Apache+and+FastCGI+Simply](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

---

<div class="post-metadata">

**Author:** ![gabordemeter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/9de053/32.png) [@gabordemeter](https://www.ruby-forum.com/u/gabordemeter)\
**Post date:** [May 25, 2007, 5:13pm UTC](https://www.ruby-forum.com/t/ruby-rails-installation-on-centos/104918/7 "2007-05-25T17:13:10Z")

</div>

> > 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](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.

–  
Alexey V.
