Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.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
Heroku PHP项目,工头在本地启动错误-“;程序需要PHP5.5.11或更新版本;错误代码1_Php_Heroku_Composer Php_Foreman - Fatal编程技术网

Heroku PHP项目,工头在本地启动错误-“;程序需要PHP5.5.11或更新版本;错误代码1

Heroku PHP项目,工头在本地启动错误-“;程序需要PHP5.5.11或更新版本;错误代码1,php,heroku,composer-php,foreman,Php,Heroku,Composer Php,Foreman,尝试在本地启动应用程序时,我遇到以下错误: nick$ foreman start 23:56:24 web.1 | started with pid 98467 23:56:24 web.1 | This program requires PHP 5.5.11 or newer; check your 'php-fpm' command. 23:56:24 web.1 | exited with code 1 23:56:24 system | sending SIGTERM to al

尝试在本地启动应用程序时,我遇到以下错误:

nick$ foreman start
23:56:24 web.1  | started with pid 98467
23:56:24 web.1  | This program requires PHP 5.5.11 or newer; check your 'php-fpm' command.
23:56:24 web.1  | exited with code 1
23:56:24 system | sending SIGTERM to all processes
我在本地运行PHP5.5.15

nick$ php -v PHP 5.5.15 (cli) (built: Aug 15 2014 15:09:30)  Copyright
(c) 1997-2014 The PHP Group Zend Engine v2.5.0, Copyright (c)
1998-2014 Zend Technologies
程序文件内容:

web: vendor/bin/heroku-php-apache2
php fpm输出:

nick$ php-fpm
[16-Aug-2014 00:06:32] ERROR: failed to open configuration file '/private/etc/php-fpm.conf': No such file or directory (2)
[16-Aug-2014 00:06:32] ERROR: failed to load configuration file '/private/etc/php-fpm.conf'
[16-Aug-2014 00:06:32] ERROR: FPM initialization failed

知道这里会发生什么吗?

我想您的
php fpm
命令不是5.5.15(看起来是您自己构建的)。它通常安装在
/usr/local/sbin
或类似的(
../sbin
在任何情况下),我想与
../bin
不同的是,它不在您的
$PATH

检查php fpm-v以确保。

已解决:

已卸载旧的php fpm版本。 已卸载自制php5.5。 重新安装带有fpm的php5.5