Fatal error : Class 'Imagick' not found Ubuntu 14.04.5 LTS
<p>I'm running Ubuntu 14.04.5 LTS</p>

<p>I've run following commands</p>

<pre><code>sudo apt-get update
sudo apt-get install imagemagick
sudo apt-get install php5-imagick
sudo apt-get update
</code></pre>

<p>Edited my php.in <strong>/etc/php/5.6/apache2/php.ini</strong> added following at end of file</p>

<pre><code>extension=imagick.so
</code></pre>

<p>After all this</p>

<pre><code>sudo service apache2 restart
</code></pre>

<p>But still I'm getting the error and even in php -m it's not showing Imagick.</p>

<p>Using</p>

<pre><code>PHP 5.6.28-2+deb.sury.org~trusty+1 (cli)
</code></pre>