I have php version 5.6.22. Install php5.6-gd on ubuntu 14.04 but php is not recognizing it. I have installed php5.6-gd by following below steps.
sudo apt-get update
sudo apt-get install php5.6-gd
Added
extension=gd.so
in php.ini file.
But still it is not recognizing gd library. And out put of below command is :
dpkg --get-selections | grep php
dh-php5 install
libapache2-mod-php5 install
php-common install
php-pear install
php5-cli install
php5-common install
php5-curl install
php5-dev install
php5-json install
php5-mcrypt install
php5-mysql install
php5-readline install
php5.6-common install
php5.6-gd install
pkg-php-tools install