I installed Redmine on Fedora 18. The installation works when tested with webrick, as explained in the official HowTo.
Now I want to use Passenger and Apache to host Redmine. What I get is:
Passenger error #2 An error occurred while trying to access '/var/www/redmine/config/environment.rb': Cannot stat '/var/www/redmine/config/environment.rb': Permission denied (errno=13)
Apache doesn't have read permissions to that file. Please fix the relevant file permissions.
After several unsuccessful tries to resolve the problem, I gave the ownership of the whole
/var/www/redmine directory including contents to the apache user and changed the permissions recursively to 777. I su'd to the apache user and could open and stat the environment.rb file without any problem. So I think that it is not a permission problem after all, but faced with this explicit error message, I am out of ideas.
What could be the problem here, and any ideas how to fix it (preferably a solution which allows me to change the permissions back to a sensible value)?
- This is possibly related to this question.
- I didn't forget to restart apache after changing the permissions.
- I am running httpd version 2.4.4-2.fc18, Phusion Passenger version 4.0.4 Redmine version 2.3.1.