CentOS: Installing Apache Passenger module for rails app
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
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.






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