If you wish to install and configure Blackfire.io on Linux for PHP using PHP 7.2.5, please run this command :
Alternatively, you could install Blackfire.io on Linux for PHP by entering these commands manually on the container's CLI :
Once you will have entered the last command, you will have to supply your Blackfire server credentials. These can be found in your Blackfire account at the following URL : https://blackfire.io/account#server. Once you have entered your credentials, you can start the agent by entering the following command :
Now, install the Blackfire client by entering the following commands :
After entering the last command, you will have to supply your Blackfire client credentials. These can also be found in your Blackfire account at the following URL : https://blackfire.io/account#client.
The final step in order to run Blackfire inside a Linux for PHP container is to install the Blackfire Probe as a PHP extension. In order to do this, please start by downloading the library and configuring it.
Once the shared object is copied to the PHP extensions folder and PHP-FPM is restarted, you will be able to profile your PHP applications by using the Blackfire command line tool we installed previously or by installing and using the Blackfire browser plugin in your favorite browser.