在不带apache的nginx上安装php7.2-xml

在不带apache的nginx上安装php7.2-xml,php,nginx,php-extension,Php,Nginx,Php Extension,我正在尝试使用nginx为我的LEMP安装php7.2-xml,但是出现了libapache2-mod-php7.2的问题。奇怪的是,它连接到apache,而我只使用nginx而不使用apache。无论如何,我无法安装扩展。如何安装php7.2-xml mann@debian:~/Dropbox/deploy$ sudo apt-get install php7.2-xml Reading package lists... Done Building dependency tree

我正在尝试使用nginx为我的LEMP安装
php7.2-xml
,但是出现了
libapache2-mod-php7.2
的问题。奇怪的是,它连接到apache,而我只使用nginx而不使用apache。无论如何,我无法安装扩展。如何安装
php7.2-xml

mann@debian:~/Dropbox/deploy$ sudo apt-get install php7.2-xml
Reading package lists... Done
Building dependency tree       
Reading state information... Done
php7.2-xml is already the newest version (7.2.8-2).
The following packages were automatically installed and are no longer required:
  libargon2-0 libc-ares2 libhttp-parser2.7.1 libuv1 nodejs-doc
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1571 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up libapache2-mod-php7.2 (7.2.8-2) ...
dpkg: error processing package libapache2-mod-php7.2 (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 libapache2-mod-php7.2
E: Sub-process /usr/bin/dpkg returned an error code (1)
mann@debian:~/Dropbox/deploy$

您是否看到行
php7.2-xml已经是最新版本(7.2.8-2)。
?是。我错过了。谢谢