Installing mod_rails on CentOS

First, you should follow this guide: http://wiki.rubyonrails.org/rails/pages/RailsOnCentos to install Rails and Ruby in general.

After you install RubyGems, install passenger by issuing gem install passenger.
After the installation completes, issue: passenger-install-apache2-module at the command prompt.
The installation steps should be straightforward, and it’ll tell you how to work through everything.

If you get the following error: cannot open /httpd/build/config_vars.mk: No such file or directory at /usr/sbin/apxs line 201 (this may appear at the beginning of running passenger-install-apache2-module), you need to install apr-devel. Issue yum install apr-devel to take care of that.

Advertisements

One response to “Installing mod_rails on CentOS

  1. unixtoys

    Thanks, tihs helped a bunch in my effort to fix my mod_rails install on CentOS. This is so much easier on Ubuntu.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: