Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database cakephp

enter image description here

I don't know how to solve this problem. The problem happened when I deploy this project to production server using Apache web server. I try to change DocumentRoot on Apache webservers. (CakePHP documentation) but still no luck.

But if I run the project under development server using ./cake server command (http://localhost:8765/) it seems ok. I can create, retrieve, update, delete. No database error

enter image description here

Please help me.

like image 896
softboxkid Avatar asked Jul 03 '15 08:07

softboxkid


1 Answers

This issue is also related to another question about cakePhp 3.x

The error comes from the DebugKit plugin, which is activated in your site, as it's obvious by the screenshot. You need to make the file ROOT/tmp/debug_kit.sqlite, writable.

like image 117
Greg Kelesidis Avatar answered Oct 20 '22 17:10

Greg Kelesidis