Tatva-Artha

meaning of "it"

CentOS: Installing Apache Passenger module for rails app

with 2 comments

Installing apache passenger module for rails app on centos linux is very similar to ubuntu. The only gotcha is installing a few packages on which the module might depend.

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

This installation of apache module (after gem installation) does cursory check for all existing dependencies. I ran into a few APR (Apache Portable Runtime) related packages missing. I had to install following two yum packages for the passenger to install successfully.

sudo yum install httpd-devel
sudo yum install apr-devel
http://www.tatvartha.com/wp-content/plugins/sociofluid/images/digg_16.png http://www.tatvartha.com/wp-content/plugins/sociofluid/images/reddit_16.png http://www.tatvartha.com/wp-content/plugins/sociofluid/images/stumbleupon_16.png http://www.tatvartha.com/wp-content/plugins/sociofluid/images/delicious_16.png http://www.tatvartha.com/wp-content/plugins/sociofluid/images/google_16.png http://www.tatvartha.com/wp-content/plugins/sociofluid/images/twitter_16.png

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

Written by Sharad

August 17th, 2009 at 2:45 pm

Posted in All

2 Responses to 'CentOS: Installing Apache Passenger module for rails app'

Subscribe to comments with RSS or TrackBack to 'CentOS: Installing Apache Passenger module for rails app'.

  1. Hi,

    I am having a dedicated server with host gator and run few big website on it, now I am planing to install Shapado on it, but facing problem in Installing Passenger, I installed ROR but my developer is saying that to install passenger we need to reinstall apache in that case all the previous configs will be deleted.

    I don’t want to take any risk on my server,
    so is the above mentioned procedure will help us without reinstalling apache.

    Waiting for your reply.

    Bhanu

    15 Apr 11 at 9:41 pm

  2. Installing passenger does not require reinstalling apache or ruby or rails. So, you are safe. Even if re-installation of apache is required (for whatever other reason), it shouldn’t affect your apache config files. You should keep a copy of apache config specific to your webapp inside your codebase and install it each time you app is deployed. That way, your codebase always contains the correct config that goes with it. HTH.

    Sharad

    11 Jun 11 at 6:42 pm

Leave a Reply