Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up BlackFire.io on a MAMP Pro installation (Mac OSX)

Tags:

php

mamp

I'm having a great deal of difficulty getting BlackFire.io up and running locally on my my Mac OSX (10.10) and MampPro (3.2.1) setup.

I've been able to follow most of the instructions successfully, but have believe that OSX's native PHP/Apache install is taking some of the installation commands and not my MAMP config. So far, finding any documentation that relates to the MAMP environment is lacking.

Is there a way to clearly delineate the two so that I can ensure the BlackFire plugins and configs are directed to my MAMP install? Or perhaps is there a way to remove OSX's PHP/Apache?

Anyone else successfully got it up and running in this environment?

like image 467
nuge Avatar asked May 12 '15 22:05

nuge


People also ask

Is blackfire IO free?

Free subscriptions are provided only to project leads and core project committers. Free subscriptions are valid for one year and can be renewed if your project still meets the support program requirements. You may use free subscriptions solely for developing non-commercial open source projects.


1 Answers

You have to install the PHP probe in the right folder (where MAMP'S PHP executable is).

Run php -i | grep 'extension_dir' and download the probe from here under the Manual tab.

After that, edit php.ini (File > Edit Template > PHP > Your PHP version), and add the configuration at the end of the file:

[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
like image 118
IAmJulianAcosta Avatar answered Oct 06 '22 22:10

IAmJulianAcosta