To run the online installation of PHP with the GD Library command:
Yum-y Install PHP-GD
The system will download the GD library on its own website, and then it will automatically perform the installation
Restart the APACHCE service for the installed GD library to take effect
Service httpd Restart
The installation path of GD
/etc/php.d/gd.ini <---This is to allow PHP to support GD Oh, this is one of the characteristics of CentOS, do not have to write all the things in
PHP.ini This file, just need to write *.ini file in the/etc/php.d/folder on it, the system will automatically read the *.ini of this directory into the php.ini
/usr/lib/php/modules/gd.so <----This is GD's file.
The/ETC/PHP.D folder will then produce the GD library file Gd.ini, indicating that you have been installed successfully. There is also no need to add Extension=php_gd2.dll to the PHP profile php.ini because the *.ini files in the PHP.D folder are automatically read to the PHP configuration file php.ini.