CentOS installation GD library support

  
 

The default CentOS server does not support the GD library after installing the LAMP environment. There are a lot of tutorials on the web. It is very complicated to describe some ways to install the GD library. In fact, it doesn't have to be so complicated.

Because CentOS will release the GD library's PHP
as another version of PHP
, if you need the server to support the GD library, you only need to install the GD library directly. The php version is OK.

The following is the easiest way to install the GD library: the specific operation is only 2 commands as follows: Run the online command to install PHP with GD library: yum -y install php-gd

Start the apachce service to make the GD library after the installation effective service httpd restart

gd installation path /etc/php.d/gd.ini

This is to let php support gd, this It is one of the features of CentOS. You don't have to write everything in the php.ini file. Just write the *.ini file in the /etc/php.d/folder and the system will automatically put this directory. *.ini read into php.ini/usr/lib/php/modules/gd.so

This is the gd file

Copyright © Windows knowledge All Rights Reserved