Note: this article only applies if your current PHP
version has been installed by yum. If you custom compiled it from
source, this will not work.
Verify PHP as installed by yum
An easy task, using yum. First step, see if it's already installed.
[root@srv]# rpm -qa | grep php
php-common-5.1.6-15.el5
php-cli-5.1.6-15.el5
php-5.1.6-15.el5
php-pdo-5.1.6-15.el5
php-mysql-5.1.6-15.el5
Install the GD library using yum
If the GD Library isn't present in that list, it wasn't installed on the server yet. Install it using yum.
[root@srv]# yum install php-gd
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
extras 100% |====================| 1.1 kB ...