安装php7.0-xml包即可解决,如Ubuntu16
sudo apt-get install php7.0-xml
然后重启Apache,使更改生效
systemctl restart apache2.service