Magento – Magento 2.0.2 installation, fatal error: DOMDocument

fatal errormagento2PHP

I am trying to install Magento 2.0.2 on a GoDaddy "Ultimate Linux Hosting with cPanel" server. When I open the page I am given this error:

Fatal error: Class 'DOMDocument' not found in
/home/intx/public_html/dev/vendor/magento/framework/Config/Dom.php on
line 364

I have tried looking all over and can not figure out what I am supposed to do to fix this.

Best Answer

Install these 2 extention and restart apache

 sudo apt-get install php7.1-dom
 sudo apt-get install php7.1-xml
 sudo service apache2 restart

Note: php version according to your current php version

Related Topic