I\'ve found an error on a page in my Magento application; it always show this message error when I visit it:
Fatal error: Class \'DOMDocument\' not fo
I'm using CentOS 7 with virtualmin and three PHP versions. I also have REMI repo enabled. it worked for me:
Just append PHP major version number like this php{version number}-xml
. And run yum install
yum install php70-php-xml
yum install php71-php-xml
yum install php72-php-xml
Don't forget to restart Apache:
service httpd restart