在 Ubuntu 上,您在 PHP7 升级期间收到以下消息:
php7.0 (7.0.3-6) unstable; urgency=medium
* Several extensions have been split into separate extension packages:
- php-dba - Database (dbm-style) Abstraction Layer
- php-mbstring - Multibyte String
- php-soap - SOAP
- php-xml - DOM, SimpleXML, WDDX, XML, XMLReader and XMLWriter
- php-zip - Zip
* The new packages are not installed automatically, so you will need to
install them by hand, if you use the functions in those modules.
* Most modules that have been builtin before are now included in
php7.0-common package and they are enabled by default for your
convenience. You can disable unneede modules via phpdismod tool.
-- Ondřej Surý <ondrej@debian.org> Mon, 22 Feb 2016 12:37:09 +0100
所以它是导致问题的软件包之一。在本例中,它是 .php-xml
请注意
新软件包不会自动安装
您可以通过以下方式解决此问题
sudo apt-get install php-xml
sudo apache2ctl graceful