title: PHP Warning: Module 'blackfire' already loaded in Unknown on line 0
body: <p>I tried installing <a href="https://www.blackfire.io/" rel="nofollow noreferrer">Blackfire</a>. And it's working. However, I'm getting this warning, whenever I run a PHP-command:</p>
  <blockquote>
  <p>PHP Warning:  Module 'blackfire' already loaded in Unknown on line 0</p>
  </blockquote>
  <p>Just like explained here: <a href="https://stackoverflow.com/questions/32764981/php-warning-module-already-loaded-in-unknown-on-line-0">PHP Warning: Module already loaded in Unknown on line 0</a>.</p>
  <p>The solution there is, that the module is loaded more than once, which sounds like the problem I have as well.</p>
  <p>The thing is, that I have two services handling PHP:</p>
  <ul>
  <li><code>nginx</code></li>
  <li><code>php7.4-fpm</code></li>
  </ul>
  <p>How do I know which of them should load this Blackfire-library?</p>
  <hr />
  <h2>Further details</h2>
  <p>If I do this: `grep -R &quot;blackfire&quot; /etc/php/7.4/</p>
  <p>then I get this:</p>
  <pre><code>./fpm/conf.d/99-blackfire.ini:[blackfire]
  ./fpm/conf.d/99-blackfire.ini:extension=blackfire.so
  ./fpm/conf.d/99-blackfire.ini:blackfire.log_level=1
  ./fpm/conf.d/90-blackfire.ini:[blackfire]
  ./fpm/conf.d/90-blackfire.ini:extension=blackfire.so
  ./fpm/conf.d/90-blackfire.ini:blackfire.agent_socket = unix:///var/run/blackfire/agent.sock
  ./fpm/conf.d/90-blackfire.ini:;blackfire.server_id =
  ./fpm/conf.d/90-blackfire.ini:;blackfire.server_token =
  ./fpm/conf.d/90-blackfire.ini:;blackfire.apm_enabled = 1
  ./fpm/conf.d/90-blackfire.ini:;blackfire.log_level = 3
  ./fpm/conf.d/90-blackfire.ini:;blackfire.log_file = /tmp/blackfire.log
  ./cli/conf.d/99-blackfire.ini:[blackfire]
  ./cli/conf.d/99-blackfire.ini:extension=blackfire.so
  ./cli/conf.d/99-blackfire.ini:blackfire.log_level=1
  ./cli/conf.d/90-blackfire.ini:[blackfire]
  ./cli/conf.d/90-blackfire.ini:extension=blackfire.so
  ./cli/conf.d/90-blackfire.ini:blackfire.agent_socket = unix:///var/run/blackfire/agent.sock
  ./cli/conf.d/90-blackfire.ini:;blackfire.server_id =
  ./cli/conf.d/90-blackfire.ini:;blackfire.server_token =
  ./cli/conf.d/90-blackfire.ini:;blackfire.apm_enabled = 1
  ./cli/conf.d/90-blackfire.ini:;blackfire.log_level = 3
  ./cli/conf.d/90-blackfire.ini:;blackfire.log_file = /tmp/blackfire.log
  ./mods-available/blackfire.ini:[blackfire]
  ./mods-available/blackfire.ini:extension=blackfire.so
  ./mods-available/blackfire.ini:blackfire.agent_socket = unix:///var/run/blackfire/agent.sock
  ./mods-available/blackfire.ini:;blackfire.server_id =
  ./mods-available/blackfire.ini:;blackfire.server_token =
  ./mods-available/blackfire.ini:;blackfire.apm_enabled = 1
  ./mods-available/blackfire.ini:;blackfire.log_level = 3
  ./mods-available/blackfire.ini:;blackfire.log_file = /tmp/blackfire.log
  </code></pre>
  <p>I can see that there is a <code>fpm</code>-folder and a <code>cli</code>-folder. And that there are two blackfire-ini-files: <code>90-blackfire.ini</code> and <code>99-blackfire.ini</code>.</p>
  <p>How do I know which files is being used?</p>