Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/275.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Debian 10.3上启动php7.3-fpm?错误:无法启动PHP 7.3 FastCGI进程管理器_Php_Debian - Fatal编程技术网

如何在Debian 10.3上启动php7.3-fpm?错误:无法启动PHP 7.3 FastCGI进程管理器

如何在Debian 10.3上启动php7.3-fpm?错误:无法启动PHP 7.3 FastCGI进程管理器,php,debian,Php,Debian,在Debian 10.3的新安装中,我尝试安装php fpm,但无法正确配置 $ sudo apt install php-fpm 扔下这个: (...) Detected unsafe path transition / → /run during canonicalization of /run. Job for php7.3-fpm.service failed because the control process exited with error code. See "sys

在Debian 10.3的新安装中,我尝试安装php fpm,但无法正确配置

$ sudo apt install php-fpm
扔下这个:

(...)   
Detected unsafe path transition / → /run during canonicalization of /run.
Job for php7.3-fpm.service failed because the control process exited with error code.
See "systemctl status php7.3-fpm.service" and "journalctl -xe" for details.
invoke-rc.d: initscript php7.3-fpm, action "start" failed.
● php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager
   Loaded: loaded (/lib/systemd/system/php7.3-fpm.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2020-03-10 12:03:31 -03; 6ms ago
     Docs: man:php-fpm7.3(8)
  Process: 7111 ExecStart=/usr/sbin/php-fpm7.3 --nodaemonize --fpm-config /etc/php/7.3/fpm/php-fpm.conf (code=exited, status=78)
 Main PID: 7111 (code=exited, status=78)
 (...)

它还抱怨libapache2-mod-php7.3依赖,但我不想使用Apache。

只需在
/var/run
中为php创建一个文件夹即可

sudo mkdir /var/run/php
sudo apt install --reinstall php-fpm