Nathen Harvey

a blog

Passenger and PHP

I recently migrated a site from mongrel to passenger. Today I learned that the wordpress site that was served up by the same webserver wasn’t working anymore.

Compared the configurations and everything looked OK, no changes were made as part of the migration. PHP module was being loaded, URL was being properly aliased, etc. Watched my logs and saw that Passenger was attempting to serve up the request which is not what I wanted.

A quick update to my Directory’s definition and the issue was fixed. I had to explicitly disable Passenger using PassengerEnabled off as seen below:

1
2
3
4
5
  Alias /blog /shared/www/blog
  <Directory /shared/www/blog>
    DirectoryIndex index.php
    PassengerEnabled off
  </Directory>

Comments