Error: SQLSTATE [HY000]: General error: 8 trying to write cakephp database to read

enter image description here

I don't know how to fix this problem. The problem came up when I deploy this project to a production server using Apache web server. I am trying to change DocumentRoot on Apache web servers. ( CakePHP documentation ) but still no luck.

But if I run the project under development server using the command. / cake server ( http: // localhost: 8765 / ) this looks ok. I can create, retrieve, update, delete. Database Error

enter image description here

Please help me.

+3


source to share


1 answer


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



The error comes from the DebugKit plugin being activated on your site, as you can see in the screenshot. You need to make the ROOT / tmp / debug_kit.sqlite file writable.

+17


source







All Articles