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

A friends of mine have a shared hosting with many sites hosted. There is ruby on rails, php, xslt/xml sites using mysql or postgress. Today one of the xslt sites displays this error:

Passenger error #2
An error occurred while trying to access '..../config/environment.rb': Cannot stat '..../config/environment.rb': Permission denied (13)
Apache doesn't have read permissions to that file. Please fix the relevant file permissions.

This is, as I Know, a ruby error (*.rb), but there is no ruby app here! And no any config/ catalogue. The error log says:

(13)Permission denied: /home/..../.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

The .htaccess file in the htdocs directory is present and have 777 permission for now. I haven't any idea what does it mean.

share|improve this question

Set 'PassengerEnabled off'.

share|improve this answer
You would do this in the vhost config for the site that's failing. – Bill Weiss Oct 1 '10 at 21:16

That looks like an error message from mod_ruby (Phusion Passenger) in your apache install. mod_ruby runs as the owner of /your/ruby/app/config/environment.rb by default.

can you post your httpd.conf, or at least the mod_ruby bits?

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.