title: Rails: SQLite3::CantOpenException: unable to open database file
body: <p>I'm trying to use <code>delayed_job</code> to schedule tasks using Sqlite3, and it looks like apache isn't able to read my <code>production.sqlite3</code> file.</p>
  
  <p>Here's my <code>database.yml</code>:</p>
  
  <pre><code>production:
    adapter: sqlite3
    database: db/production.sqlite3
    pool: 5
    timeout: 5000
  </code></pre>
  
  <p>Here's the error I am getting (in log/production.log):</p>
  
  <pre><code>ActiveRecord::StatementInvalid (SQLite3::CantOpenException: unable to open database file:) 
  </code></pre>
  
  <p>I have run <code>RAILS_ENV=production rake db:create</code> and <code>RAILS_ENV=production rake db:migrate</code>. The <code>db/production.sqlite3</code> file exists, and the db directory and all its subfolders are owned by <code>apache:apache</code>, which is who apache runs as. I'm using Phusion Passenger on Amazon EC2.</p>