How can I change an SQLite database from read-only to read-write?
When I executed the update statement, I always got:
SQL error: attempt to wr
On Ubuntu, change the owner to the Apache group and grant the right permissions (no, it's not 777):
sudo chgrp www-data sudo chmod 664
Update
You can set the permissions for group and user as well.
sudo chown www-data:www-data