[英]AWS EC2 Class 'DOMDocument' not found Laravel
I have search high and low and many hours for this but I really can't find. 我为此搜索了很多时间,但是却找不到。 I have gone through installing LAMP on the Instance - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-linux-2.html
我已经在实例上安装了LAMP- https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-linux-2.html
All solutions ask me to install 所有解决方案都要求我安装
yum install php-xml
which I did but still getting the same error. 我做了,但仍然遇到相同的错误。 What dependencies am I missing?
我缺少什么依赖性? Help is much much appreciated!
非常感谢帮助!
I am using dompdf. 我正在使用dompdf。 PHP version 7.2.11
PHP版本7.2.11
I think you are missing -y
in the command 我认为您在命令中缺少
-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.