Laravel Intervention Image GD library extension
<p>First of all, I am sorry if my question may be too vague. So, I will try to clarify my question as much as possible.</p>

<p>I am currently developing a Laravel application, and I am trying to use Intervention Image Facade. When I tried to use it to test an upload, I got the following error:-</p>

<pre><code>NotSupportedException in Driver.php line 16: GD Library extension not available with this PHP installation.
</code></pre>

<p>So, as I would try to do, I installed the GD library using <code>sudo apt-get install libgd3</code> and the php gd driver using <code>sudo apt-get php5.6-gd</code>. However, this did not work, and the same error keeps popping up in laravel. What have I clearly missed, and what should I follow next?</p>

<p><strong>Edit 1.</strong>  I used the following command to see if php actually supports gd driver : - <code>php -i | grep -i --color gd</code></p>

<p>The following result came: - </p>

<pre><code>/etc/php/5.6/cli/conf.d/20-gd.ini,
gd
GD Support =&gt; enabled
GD headers Version =&gt; 2.2.3
GD library Version =&gt; 2.2.3
gd.jpeg_ignore_warning =&gt; 0 =&gt; 0
GDM_LANG =&gt; en_US
GDMSESSION =&gt; ubuntu
_SERVER["GDM_LANG"] =&gt; en_US
_SERVER["GDMSESSION"] =&gt; ubuntu
</code></pre>

<p>Hope this helps even more.</p>

<p><strong>EDIT 2</strong> Thanks to all who answered. I found my solution in Mayank Pandey's answer. </p>