title: Module pcntl already loaded in Unknown on line 0 - Apache x Cli
body: <p>I'm getting this PHP Warning:</p>
  
  <blockquote>
    <p>Module 'pcntl' already loaded in Unknown on line 0</p>
  </blockquote>
  
  <p>But it is only enabled for Apache. Enabled it on <code>/etc/php/7.2/apache2/conf.d/20-pcntl.ini</code>:</p>
  
  <blockquote>
    <p>extension=pcntl.so</p>
  </blockquote>
  
  <p>I don't have it enabled on CLI. Checked with:</p>
  
  <ul>
  <li>I don't have a <code>/etc/php/7.2/cli/conf.d/20-pcntl.ini</code> file</li>
  <li>Grep command <code>grep -R extension=pcntl.so /etc/php/7.2</code> only returns the file on apache2 folder</li>
  </ul>
  
  <p>If I disable this extension on Apache's .ini, it won't load on Apache but loads on Cli.</p>
  
  <p>If I enable this extension on Apache's .ini, I get the module already loaded warning.</p>
  
  <p>I'm need to enable PCNTL on Apache to use Spatie\Async library.</p>
  
  <p>It's a Ubuntu 14 server.</p>