We're currently running Apache2 on an old (and very stable) version of CentOS. It's so ancient it didn't come with Apache 2, so we've got it installed from source. Today we're making the big move to running our Rails apps on Phusion Passenger (a.k.a mod_rails), but we ran into some problems with the compilation of the Apache module, mainly because passenger-install-apache2-module couldn't figure out where any of the Apache development headers were. It's a great installer but it can't magically figure out where Apache's keeping its development headers.

The solution was pretty simple, extracted from here and boiled down, it's:

CODE:
  1. export APXS2=/usr/local/apache/bin/apxs
  2. export APR_CONFIG=/usr/local/apache/bin/apr-1-config

You may need to change the path depending on where you've got Apache installed.


No Responses to “Installing Phusion Passenger on Centos With a Custom Apache2”  

  1. No Comments

Leave a Reply