尝试在本地启动应用程序时出现以下错误:
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
我有PHP 5.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
Procfile内容:
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。重新安装php5.5与fpm