繁体   English   中英

找不到AWS EC2类'DOMDocument'

[英]AWS EC2 Class 'DOMDocument' not found Laravel

我为此搜索了很多时间,但是却找不到。 我已经在实例上安装了LAMP- https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-linux-2.html

所有解决方案都要求我安装

yum install php-xml 

我做了,但仍然遇到相同的错误。 我缺少什么依赖性? 非常感谢帮助!

我正在使用dompdf。 PHP版本7.2.11

我认为您在命令中缺少-y

# yum list installed | grep php-xml
# yum info php-xml
Available Packages
Name        : php-xml
Arch        : x86_64
Version     : 5.3.3  
Release     : 40.el6_6
Size        : 106 k
Repo        : updates 
Summary     : A module for PHP applications which use XML
URL         : http://www.php.net/
License     : PHP
Description : The php-xml package contains dynamic shared objects which add support
            : to PHP for manipulating XML documents using the DOM tree,
            : and performing XSL transformations on XML documents.
# yum install -y php-xml

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM