Why is apache/passenger unable to open the sqlite3 rails database file?

Posted by sendos on Server Fault See other posts from Server Fault or by sendos
Published on 2010-04-07T12:58:27Z Indexed on 2010/04/07 13:03 UTC
Read the original article Hit count: 190

Filed under:
|
|
|

I'm running apache2/passenger2.0.3 (ubuntu 9.10 packages).

I can start up Webrick in the rails folder and run the app perfectly as I do on my development box with

script/server

Why then does apache/passenger fail to open the database, throwing a 500 and putting the following in the log?

Status: 500 Internal Server Error could not open database: unable to open database file /usr/lib/ruby/1.8/sqlite3/errors.rb:62:in `check'...

© Server Fault or respective owner

Related posts about apache

Related posts about rails