If 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
Troubleshooting PHP Sqlite Query Error: Unable to open database
Posted by Open Source Hacker
on February 25, 2007

I love u! haha! Thanks ^^
thank you
This saved me hours of beating my head against the wall. Thanks!
I will like to know how to make my database file writable to the web user, please
Thanks. This post really helped me.
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.