【发布时间】:2021-12-07 11:03:16
【问题描述】:
我是 Drupal 9 的新手,也是 SQLite 的新手。
我在本地开发了一个 Drupal 项目,一切都很好。我正在配置一个 VPS 来托管这个以及其他一些 Drupal 项目。为方便起见,我使用了 SQLite DB。
服务器上的版本不工作,看起来是数据库问题。有什么想法吗?
操作系统
CentOS Linux 发布 8.4.2105
> php --version
PHP 7.4.25 (cli) (构建: Oct 19 2021 15:18:10) (NTS)
> sqlite3 --version
3.26.0 2018-12-01 12:34:55 bf8c1b2b7a5960c282e543b9c293686dccff272512d08865f4600fb58238alt1
浏览器消息 - 500 响应
网站遇到意外错误。请稍后再试。 PDOException:SQLSTATE[HY000]:一般错误:8 次尝试在 Drupal\Component\DependencyInjection\PhpArrayContainer->createService() 中写入只读数据库(/var/www/virtualhosts/protech/protech/web/core/lib 的第 79 行/Drupal/Component/DependencyInjection/PhpArrayContainer.php)。 Drupal\Component\DependencyInjection\PhpArrayContainer->createService()(行:176) Drupal\Component\DependencyInjection\Container->get()(第 212 行) Drupal\Component\DependencyInjection\PhpArrayContainer->resolveServicesAndParameters()(第 62 行) Drupal\Component\DependencyInjection\PhpArrayContainer->createService()(行:176) Drupal\Component\DependencyInjection\Container->get()(行:550) Drupal\Core\DrupalKernel->getCachedContainerDefinition()(行:903) Drupal\Core\DrupalKernel->initializeContainer()(行:473) Drupal\Core\DrupalKernel->boot()(行:716) Drupal\Core\DrupalKernel->handle()(第 19 行)
Apache 日志
[20/Oct/2021:15:37:52 +0000] 500 0 2819 86.182.105.226 protech.targeted.agency "GET / HTTP/1.1" 1151 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36" - -
【问题讨论】:
标签: php sqlite pdo server drupal