Leave a comment

Install Rails Passenger Module on Apache2.4

I tried to install passenger-install-apache2-module and getting error :

Apache2 headers not found.

its seems that Passenger is not getting a Path of an Apache2.4 to solve this.,

we need to export these ENV into bash

export HTTPD="/usr/local/apache2/bin/httpd"
export BINDIR="/usr/local/apache2"
export APXS2="/usr/local/apache2/bin/apxs"
export APR_CONFIG="/usr/local/apr/bin/apr-1-config"
export APU_CONFIG="/usr/local/apr/bin/apu-1-config"

or we can Direct pass the path as

passenger-install-apache2-module --auto --apxs2-path=/usr/local/apache2/bin/apxs --apr-config-path=/usr/local/apache2/bin/apr-1-config

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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: