问题:php7.0-fpm

问题:php7.0-fpm

因此:Ubuntu 16.04.6 LTS + Plesk Obsidian - 18

我有一个 VPS,每次尝试安装或更新某些内容时,都会出现错误。最后,似乎一切都指向 的安装php7.0-fpm

我能做些什么?

Unsafe symlinks encountered in /run/php, refusing.
Job for php7.0-fpm.service failed because the control process exited with error code. See "systemctl status php7.0-fpm.service" and "journalctl -xe" for details                                                                                        .
invoke-rc.d: initscript php7.0-fpm, action "start" failed.
● php7.0-fpm.service - The PHP 7.0 FastCGI Process Manager
   Loaded: loaded (/lib/systemd/system/php7.0-fpm.service; enabled; vendor prese                                                                                        t: enabled)
  Drop-In: /lib/systemd/system/php7.0-fpm.service.d
           └─limit_nofile.conf
   Active: failed (Result: exit-code) since jue 2020-06-18 10:52:00 CEST; 34ms a                                                                                        go
  Process: 3296 ExecStart=/usr/sbin/php-fpm7.0 --nodaemonize --fpm-config /etc/p                                                                                        hp/7.0/fpm/php-fpm.conf (code=exited, status=78)
  Process: 3283 ExecStartPre=/usr/lib/php/php7.0-fpm-checkconf (code=exited, sta                                                                                        tus=0/SUCCESS)
 Main PID: 3296 (code=exited, status=78)

jun 18 10:52:00 h2722569.stratoserver.net php-fpm7.0[3296]: [18-Jun-2020 10:5...
jun 18 10:52:00 h2722569.stratoserver.net php-fpm7.0[3296]: [18-Jun-2020 10:5...
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error al procesar el paquete php7.0-fpm (--configure): el subproceso instalado el script post-installation devolvió el código de salida de error 1
Se encontraron errores al procesar: php7.0-fpm
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

检查 中的 php-fpm (www.conf) 池定义/etc/php/7.0/fpm/pool.d。我认为您正在尝试以用户“vagrant”的身份启动 php-fpm 进程 - 该用户似乎并不存在于框中。

用户和组 www-data 用于运行 php-fpm:

user = www-data
group = www-data

相关内容