我尝试运行命令:app/console cache:clear
PHP 7的DomDocument没有找到
这回我的错误:
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/s
ymfony/symfony/src/Symfony/Component/Config/Util/XmlUtils.php:52
的Ubuntu 14.04 LTS 我使用PHP 7和安装PHP5-DOM没有解决我的问题: sudo apt-get install php5-dom
你在你的系统中有没有用于php的xml模块? – Drudge
请注意,安装软件包后可能需要'sudo service apache2 restart'。 – BurninLeo