gpt4 book ai didi

php - 错误 : SQLSTATE[HY000]: General error: 8 attempt to write a readonly database cakephp

转载 作者:可可西里 更新时间:2023-11-01 13:05:47 26 4
gpt4 key购买 nike

enter image description here

我不知道如何解决这个问题。当我使用 Apache Web 服务器将此项目部署到生产服务器时发生了问题。我尝试更改 Apache 网络服务器上的 DocumentRoot。 ( CakePHP documentation ) 但仍然没有运气。

但是,如果我使用 ./cake 服务器命令 ( http://localhost:8765/ ) 在开发服务器下运行该项目,它似乎没问题。我可以创建、检索、更新、删除。没有数据库错误

enter image description here

请帮帮我。

最佳答案

此问题也与 another question 有关关于 cakePhp 3.x

错误来自您站点中激活的 DebugKit 插件,如屏幕截图所示。您需要使文件 ROOT/tmp/debug_kit.sqlite 可写。

关于php - 错误 : SQLSTATE[HY000]: General error: 8 attempt to write a readonly database cakephp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31202452/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com