I tried to run the command app/console cache:clear
but it gave an error:
An error occurred when executing the "'cache:clear --no-warmup'" command:
PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowable
Error: Fatal error: Class 'DOMDocument' not found in /var/www/html/vendor/symfony/symfony/src/Symfony/Component/Config/Util/XmlUtils.php:52
I use PHP 7 on Ubuntu 14.04 LTS. Installing php5-dom did not resolve my problem:
sudo apt-get install php5-dom
sudo service apache2 restart
after installing the package.