How to install gd library in php?

How to install gd library in php

GD is an open source code library for the dynamic creation of images by programmers. The GD library is used for dynamic image creation. From PHP we use with the GD library to create GIF, PNG or JPG images instantly from our code. GD is written in C, and “wrappers” are available for Perl, PHP and other languages.

Install GD Library Via WHM

1 : Login into WHM -> Software -> EasyApache [Apache Update]
2 : During the build profile in step 5 you can find an option of set exhaustive list from where there will be one option of GD L:ibrary.
3 : Select that option and rebuild the apache.
4 : Restart cPanel and http services.

OR

1 : yum install php-gd and yum install gd-devel
2 : service httpd restart

OR

1 : Donwload Application Via this link http://google-desktop-for-linux-mirror.googlecode.com/files/gd-2.0.35.tar.gz
2 : tar -zxf gd-2.0.35.tar.gz
3 : cd 2.0.35
4 : ./configure
5 :  make
6 :  make install
7 :  /usr/local/lib (default library location)
8 : /usr/local/include (library included files location)
9 : ./configure –prefix=/usr ( optional to upgrade) and do # make && make install

After GD Library installation you can confirm it via phpinfo() and check for gd module.

 

Bookmark the permalink.

Comments are closed.