小编NoM*_*and的帖子

Magento:未找到“DOMDocument”类

我正在 Amazon 的 AWS Lightsail 系统上安装 Magento。我已经安装了 NGINX、MySQL 和 PHP

但我不断收到此错误:

2018/11/11 11:31:14 [error] 24035#0: *1 FastCGI sent in stderr: "PHP     message: PHP Fatal error:  Uncaught Error: Class 'DOMDocument' not found in /var/www/html/vendor/magento/framework/Config/Dom.php:384
Stack trace:
#0 /var/www/html/vendor/magento/framework/Config/Dom.php(115): Magento\Framework\Config\Dom->_initDom('<?xml version="...')
#1 /var/www/html/vendor/magento/framework/ObjectManager/Config/Reader/Dom.php(70): Magento\Framework\Config\Dom->__construct('<?xml version="...', Object(Magento\Framework\App\Arguments\ValidationState), Array, 'xsi:type', NULL)
#2 /var/www/html/vendor/magento/framework/Config/Reader/Filesystem.php(149): Magento\Framework\ObjectManager\Config\Reader\Dom->_createConfigMerger('Magento\\Framewo...', '<?xml ve
rsion="...')
#3 /var/www/html/vendor/magento/framework/Config/Reader/Filesystem.php(130): Magento\Framework\Config\Reader\Filesystem->_readFiles(Object(Magento\Framework\Config\FileIterator))
#4 /var/www/html/vendor/magento/framework/App/ObjectManagerFactory.php(275): Magento\Frame
work\Config\Reader\Filesystem->read('primary')
#5 /var" while reading response header from upstream, client: 118.209.48.25, server: tangopop.com.au, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "XX.XXX.XX.XXX" …
Run Code Online (Sandbox Code Playgroud)

php nginx magento

1
推荐指数
1
解决办法
9834
查看次数

标签 统计

magento ×1

nginx ×1

php ×1