您必须在正确的文件夹(MAMP的PHP可执行文件所在的位置)中安装PHP探针.
运行PHP -i | grep’extension_dir’并从Manual选项卡下的here下载探针.
之后,编辑PHP.ini(文件>编辑模板> PHP>您的PHP版本),并在文件末尾添加配置:
[blackfire]
;Replace the path with the path of the folder where you downloaded the probe
extension="/Applications/MAMP/bin/PHP/PHP5.5.10/lib/PHP/extensions/no-debug-non-zts-20121212/blackfire-PHP-darwin_amd64-PHP-55.so"
; On Linux systems,uncomment the following line
;blackfire.agent_socket = unix:///var/run/blackfire/agent.sock
; On Mac OS X systems,uncomment the following line
blackfire.agent_socket = unix:///usr/local/var/run/blackfire-agent.sock
blackfire.agent_timeout = 0.25
; Log verbosity level (4: debug,3: info,2: warning,1: error)
blackfire.log_level = 4
; Log file
blackfire.log_file = /tmp/blackfire.log
blackfire.server_id = YOUR_SERVER_ID
blackfire.server_token = YOUR_SERVER_TOKEN