I have installed fresh magento 2.2 which is working fine but command lines are not working. I am using ubuntu.
Getting strange error:
PHP Fatal error: Uncaught Error: Class 'DOMDocument' not found in /opt/lampp/htdocs/magento2/vendor/magento/framework/Config/Dom.php:384
Did search but not found any solution. As magento 2.2 is successfully installed so it fulfilled all required settings which magento 2.2 required. What could be the issue?
Any help would be appreciated.
Best Answer
You need to install all php module as per required of Magento2. For this error it seems you have not installed php-xml module.
So install module by below command
There is a list of module that you will need to install before Magento2 installation
For PHP 7 run below commands
Hope this will help you.