Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working with Apache and Passenger for a Rails project. And a during a restart I got the following error

Cannot load /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/ext/apache2/ into server: /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/ext/apache2/ cannot open shared object file: No such file or directory

However there is no change in the apache configuration file. I have attached the snippet from the conf file

287 LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/ext/apache2/

288 PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11

289 PassengerRuby /usr/bin/ruby1.8

I am also unable to locate the shared object file in the location pointed to by the server though I am not really sure how the .so file is works (created/destroyed)

I would also appreciate it if someone could explain to me what exactly has happened. I understand the shared object file is mission, what could be the reason it got deleted.

share|improve this question
up vote 7 down vote accepted

If you don't have it installed.

$ sudo passenger-install-apache2-module

You need to run that so that the apache can be compiled after installing the gem (gem install passenger)

And take a look at the output presented by the installer. It will show you where the files are. In fact, it shows you exactly how the configuration must look.

share|improve this answer



or if that doesn't work issue

find / -type f -name

if that doesn't return anything that means you don't have it installed.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.