Greetings,
I have magento2 installed on and when I try to run the setup:upgrade command, I get the following error:
PHP Fatal error: Uncaught Error: Class 'DOMDocument' not found in /opt/lampp/apps/magento/htdocs/vendor/magento/framework/Xml/Parser.php:35
Now, I did see these two questions on stockoverflow (
PHP 7 DomDocument not found - https://stackoverflow.com/questions/35668702/php-7-domdocument-not-found
Class 'DOMDocument' not found - https://stackoverflow.com/questions/14395239/class-domdocument-not-found)
but they don't really provide a solution since the xampp app does not use my php installed outside of the xampp environment. Or am I wrong on that?
Thanks in advance.