How to install php GD2 Library on CentOS?
well from there error i can see you have php 5.4 installed and yum have GD library package for php 5.3 which is causing the conflict .
so for php 5.4 you can install GD2 library with below command
yum install php54-gd
after that restart Apache
service httpd restart
and finally you can check in package list
rpm -qa | grep php
you will see package name something like
now run phpinfo() and check if GD library in it or not