Install GD Library for PHP on Linux
Answer:
To install GD Library for PHP on Linux
1. Fedora/CentOS
# yum install php-gd
Then restart Apache
# service httpd restart
2. Debian/Ubuntu
# sudo apt-get install php5-gd
Then restart Apache
# sudo /etc/init.d/apache restart