in reply to DBD::SQLite - Can't Connect to file - Solved

A brute-force solution would be to run your code under strace and look at lines related to any kind of file I/O under /var/www/data/. My first guess would be the disk being full, but there are still a lot of other options.