# Passenger can't find apache installation

**URL:** <https://www.ruby-forum.com/t/passenger-cant-find-apache-installation/194815>\
**Category:** Deployment\
**Created:** [September 11, 2010, 8:57am UTC](https://www.ruby-forum.com/t/passenger-cant-find-apache-installation/194815 "2010-09-11T08:57:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sereno](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e99b99/32.png) [@sereno](https://www.ruby-forum.com/u/sereno)\
**Post date:** [September 11, 2010, 8:57am UTC](https://www.ruby-forum.com/t/passenger-cant-find-apache-installation/194815/1 "2010-09-11T08:57:33Z")

</div>

Hi all,

I’m trying install passenger to work as a module of my apache 2 server,  
but the installation script is returning the follow message:

- Apache 2…not found. I have searched for a hack all day and, every  
site says the same thing, to export some env variables like APXS2  
pointing to apxs executable under apache’s bin directory or to export  
the PATH pointing to apache’s bin directory. None of them worked and the  
script fails in the same place. So, i open some scripts in the passenger  
install script folder and saw that it searches for this variables.

My development config is:  
OS: Ubuntu 10.10  
rvm with ree, 1.8.7 and 1.9.2 ruby versions  
apache 2.2 (I installed it by compiling the source code)

To install passenger I typed these follows commands:

my-user@my-machine-name\> gem install passenger  
my-user@my-machine-name\> export APXS2=//bin/apxs  
my-user@my-machine-name\> export PATH=$PATH//bin/  
my-user@my-machine-name\> rvmsudo passenger-install-apache2-module

Anybody already had this problems?

PS.: sorry about my english. 😉

Thanks in advance.
