Troubleshooting PHP Sqlite Query Error: Unable to open database

Sqlite LogoIf you are using PHP and are going to send INSERT or UPDATE queries or any other query resulting in a IO write, you will need to make the folder that contain your Sqlite database e.g. “file.db” writable by the web server user, otherwise you’ll receive error message – “Unable to open database . . . “. File permissions are not enough

Related posts:

  1. Slow Query Log Analyzes Tools
  2. Optimize MySQL Performance With MySQLTuner
  3. Recover (Crack) a password from a Microsoft Access Database (mdb)
  4. Howto: How to Reset the MySQL Root Password
  5. /dev/rtc error with Ubuntu and Linux Kernel 2.6
  6. MDB Tools to export (migrate) from mdb (Microsoft Access format) to MySQL
  7. Simple RADIUS XML dump PHP script
  8. Troubleshooting CGI premature end of script headers on Plesk
  9. Forrester Research: Open Source Databases Are Cheaper
  10. Openssl to create an unencrypted key from an encrypted one (Remove password)

Popular Related Items »

Incoming search terms

6 Comments »

  1. Matt Farmer said,

    December 15, 2008 @ 3:34

    Thanks a bunch for posting this! I searched around for what seemed like forever, seeing other users that had the same problem, but no one with an answer. This was just what I needed though.

  2. mattfarmer [dot] net » Blog Archive » Web frameworks and SQLite frustrations said,

    December 16, 2008 @ 18:09

    [...] After what felt like, and probably was, hours of searching, I finally came across this article at mediakey.dk. [...]

  3. dota said,

    January 7, 2009 @ 6:37

    Thanks. This post really helped me.

  4. jose said,

    June 1, 2009 @ 21:27

    I will like to know how to make my database file writable to the web user, please

  5. Tom Corwine said,

    June 29, 2009 @ 10:39

    This saved me hours of beating my head against the wall. Thanks!

  6. erik said,

    October 30, 2009 @ 3:12

    thank you :)

RSS feed for comments on this post · TrackBack URI

Leave a Comment