Skip to content
Advertisement

Magento: Class ‘DOMDocument’ not found

I’m installing Magento on Amazons AWS Lightsail system. I’ve installed NGINX, MySQL & PHP

But I keep getting this error:

JavaScript

Installed modules:

JavaScript

PHP Info Available: http://13.239.86.161/info.php

Advertisement

Answer

You need to install the php-dom and php-xml packages, however it looks like from you PHP info. that you have done so. If you are on Debian or Ubuntu you can make sure by running apt install php-dom php-xml

You likely need to restart PHP FPM or Apache for the changes to take effect – eg. systemctl restart php-fpm or systemctl restart apache2 (or systemctl restart httpd)

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement