Upgrading Phusion Passenger when Apache is installed from source

Posted by Luke Francl
on Thursday, October 30

I have a confession to make.

I hate the way Debian-based distributions handle Apache. sites-available, sites-enabled, esoteric commands to enable and disable sites, config files moved around from their usual places. Ugh. I just don’t like it. So I usually install Apace from source.

Here’s what you need to do to upgrade Phusion Passenger on Debian/Ubuntu when you’ve installed Apache from source.

When you run passenger-install-apache2-module, it will try to find Apache, and fail.

You need to set the following environment variables:

export APXS2=/usr/local/apache2/bin/apxs
export APR_CONFIG=/usr/local/apache2/bin/apr-1-config

With these set, the installer can find Apache and everything will work appropriately. Hopefully this information will help somebody out.

Via the Passenger documentation and Google Group.

Comments

Leave a response