Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
How to solve this issue? DOM extension enabled in cPanel.
PHP Fatal error: Uncaught Error: Class 'DOMDocument' not found in /home/freshvcf/public_html/test/vendor/magento/framework/Config/Dom.php:449
Magento 2 command is not working properly
Run this commands and try again :
sudo apt-get install php7.1-imap
sudo apt-get install php-xml
Install DOM Extension .
apt-get install php7.1-xml
Change PHP version according server PHP version
Required, but never shown