title: Error: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database cakephp
body: <p><img src="https://i.stack.imgur.com/kmyZ9.png" alt="enter image description here"></p>
  
  <p>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. (<a href="http://book.cakephp.org/3.0/en/installation.html#development-server" rel="noreferrer">CakePHP documentation</a>) but still no luck. </p>
  
  <p>But if I run the project under development server using ./cake server command (<a href="http://localhost:8765/" rel="noreferrer">http://localhost:8765/</a>) it seems ok. I can create, retrieve, update, delete. No database error</p>
  
  <p><img src="https://i.stack.imgur.com/qpsny.png" alt="enter image description here"></p>
  
  <p>Please help me.</p>