Drupal 9.2.6 - SQLite DB



我是Drupal 9和SQLite的新手。

我在本地开发了一个Drupal项目,一切都很好。我正在配置一个VPS来托管这个项目,以及其他一些Drupal项目。为了方便,我使用了SQLite数据库。

服务器上的版本不工作,它看起来是一个数据库问题。什么好主意吗?

操作系统
CentOS Linux release 8.4.2105

比;php——版本
PHP 7.4.25 (cli) (build: Oct 19 2021 15:18:10) (NTS)

比;sqlite3,版本
3.26.0 2018-12-01 12:34:55 bf8c1b2b7a5960c282e543b9c293686dccff272512d08865f4600fb58238alt1

浏览器消息- 500响应

网站遇到意外错误。请稍后再试。PDOException: SQLSTATE[HY000]:一般错误:8尝试在DrupalComponentDependencyInjectionPhpArrayContainer中写入只读数据库->createService() (/var/www/virtualhosts/protech/protech/web/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php的第79行)。DrupalComponentDependencyInjectionPhpArrayContainer- createService()(第176行)DrupalComponentDependencyInjectionContainer->get()(第212行)DrupalComponentDependencyInjectionPhpArrayContainer- resolveServicesAndParameters()(第62行)DrupalComponentDependencyInjectionPhpArrayContainer- createService()(第176行)DrupalComponentDependencyInjectionContainer->get()(第550行)DrupalCoreDrupalKernel->getCachedContainerDefinition() (Line: 903)DrupalCoreDrupalKernel->initializeContainer()(第473行)DrupalCoreDrupalKernel->boot()(第716行)DrupalCoreDrupalKernel->handle() (Line: 19)

Apache日志

[20/Oct/2021:15:37:52 +0000] 500 0 2819 86.182.105.226 protect .targeted.agency "GET/HTTP/1.1"1151年"产生绯闻;"Mozilla/5.0(麦金塔电脑;Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36"—

修复。文件/文件夹权限+ selinux强制问题。

相关内容

最新更新