Blackfire PHP 探测器无法定位 php-cli

Blackfire PHP Probe cannot locate php-cli

尝试在我的 CentOS[= 上安装 Blackfire.io PHP Probe 时31=] 服务器输入以下命令 sudo yum install blackfire-php 我收到以下错误:

Error: Package: blackfire-php-1.8.0-1.x86_64 (blackfire)
           Requires: php-cli
Error: Package: blackfire-php-1.8.0-1.x86_64 (blackfire)
           Requires: php-common >= 5.3

奇怪的是我已经安装了 php-cliphp-common我的服务器。

通过输入 php-cli -v,我收到:

PHP 5.5.31 (cli) (built: Jan 25 2016 09:03:41)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
with XCache v3.2.0, Copyright (c) 2005-2014, by mOo
with the ionCube PHP Loader v4.7.5, Copyright (c) 2002-2014, by ionCube Ltd.
with XCache Cacher v3.2.0, Copyright (c) 2005-2014, by mOo
with Suhosin v0.9.36, Copyright (c) 2007-2014, by SektionEins GmbH

关于 Blackfire 无法识别 php-cliphp-common[=32= 的任何想法或建议]?

经过大量耐心研究并直接与服务器公司(托管平台)联系后。我终于被告知“Blackfire 与 cPanel php. 不兼容”

于是,我决定联系 Blackfire,经过一番来回,他们告诉我以下内容:

I'm not aware on anything on our side making Blackfire incompatible with cPanel. However it seems they reworked the PHP "natural" way of installing extensions so I guess you should probably contact them to get more information.

显然,我已经这样做了。

However, if you have full root access to the VPS, then I guess the manual installation procedure should work with some minor adjustments. The main idea is to download the proper so, put in in the PHP extension directory and add the blackfire.ini file.

简而言之,我无法正确解决现有 cPanel 安装上的问题。

所以警告,如果您使用的是 cPanel,请忘记 Blackfire。遗憾的是,目前它们不兼容。

希望这能为一些人节省很多时间。

请注意,如果有人最终阅读了这篇文章并真正提出了解决方案并且可以提供分步说明,我很乐意将您的回复更改为可接受的答案:]

如果安装了 ioncube,blackfire 也不起作用。你的情况是:

Known incompatibilities Please note that PHP compiled with debug are not supported and that the Probe may conflict with XDebug or XHProf; disable those extensions when enabling the Probe. The Probe conflicts with some PHP extensions like Pinba or IonCube.