title: Imagick installed but not loaded from apache?
body: <p>I am a bit confused. If I run a script it works both from php-built-in server and from console.</p>
  
  <pre><code>$img = new Imagick();
  var_dump($img);
  </code></pre>
  
  <p>But if I run </p>
  
  <pre><code>&lt;?php phpinfo();
  </code></pre>
  
  <p>Apache do not see imagick. I use it in a Symfony application that sometimes return this error log:</p>
  
  <p><code>
  [2016-10-27 12:03:30] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\ClassNotFoundException: "Attempted to load class "Imagick" from the global namespace. Did you forget a "use" statement?" at /Volumes/Sviluppo/bitbucket.org/.../.../vendor/imagine/imagine/lib/Imagine/Imagick/Imagine.php line 39 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\ClassNotFoundException(code: 0): Attempted to load class \"Imagick\" from the global namespace.\nDid you forget a \"use\" statement? at /Volumes/Sviluppo/bitbucket.org/.../.../vendor/imagine/imagine/lib/Imagine/Imagick/Imagine.php:39)"} []
  </code></p>
  
  <p>I wondered in imagick.ini file</p>
  
  <pre><code>$ php -i | grep ini | grep ima
  Additional .ini files parsed =&gt; /usr/local/etc/php/7.0/conf.d/ext-imagick.ini,
  </code></pre>
  
  <p>that contains</p>
  
  <pre><code>$ cat /usr/local/etc/php/7.0/conf.d/ext-imagick.ini
  [imagick]
  extension="/usr/local/opt/php70-imagick/imagick.so"
  </code></pre>
  
  <p>File exists!!!</p>
  
  <p>PHP Version from cli is</p>
  
  <pre><code>$ php -v
  PHP 7.0.12 (cli) (built: Oct 14 2016 09:55:03) ( NTS )
  Copyright (c) 1997-2016 The PHP Group
  Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
      with Xdebug v2.4.1, Copyright (c) 2002-2016, by Derick Rethans
  </code></pre>
  
  <p>But <code>phpinfo()</code> show me 7.0.11.</p>
  
  <p>Finally, ... configuration loaded is php5 configuration. LOL. How can I move all my php to the same version?</p>
  
  <p><a href="https://i.stack.imgur.com/fiT7q.png" rel="nofollow"><img src="https://i.stack.imgur.com/fiT7q.png" alt="phpinfo output"></a></p>