When I tried to install php-gd library in my GoDaddy VPS with CentOS, It gives:
$ yum install php-gd
Loaded plugins: fastestmirror
Determining fastest mirrors
addons | 951 B 00:00
base | 2.1 kB 00:00
extras | 2.1 kB 00:00
update | 1.9 kB 00:00
Excluding Packages in global exclude list
Finished
Setting up Install Process
No package php-gd available.
Nothing to do
First, check if the package wasn't excluded. Open up the yum config with
vi /etc/yum.conf
and look for a line starting withexclude=
ifphp-gd
orphp*
is mentioned, remove it.Sometimes VPS-hosters won't allow you to use some packages because they hog memory. So you might want to check you aliases by running
alias
and check if there is no alias foryum
with an exclude-option.Otherwise you could use RPMForge to install this package:
This is the command that failed:
When running that command as suggested by the output above, you would see openssl conflicts between the i386 and i686 packages:
Transaction Check Error:
package openssl-0.9.8e-12.el5_5.7.i686 is already installed file /lib/.libcrypto.so.0.9.8e.hmac from install of openssl-0.9.8e-12.el5_5.7.i686 conflicts with file from package openssl-0.9.8e-12.el5_5.7.i386 file /lib/.libssl.so.0.9.8e.hmac from install of openssl-0.9.8e-12.el5_5.7.i686 conflicts with file from package openssl-0.9.8e-12.el5_5.7.i386 file /lib/libcrypto.so.0.9.8e from install of openssl-0.9.8e-12.el5_5.7.i686 conflicts with file from package openssl-0.9.8e-12.el5_5.7.i386 file /lib/libssl.so.0.9.8e from install of openssl-0.9.8e-12.el5_5.7.i686 conflicts with file from package openssl-0.9.8e-12.el5_5.7.i386 file /usr/bin/openssl from install of openssl-0.9.8e-12.el5_5.7.i686 conflicts with file from package openssl-0.9.8e-12.el5_5.7.i386 file /usr/lib/openssl/engines/lib4758cca.so from install of openssl-0.9.8e-12.el5_5.7.i686 conflicts with file from package ( ... )
To fix this for you, I ran this command:
Next, I ran the yum command again, and it was successful.
Finally, I ran
/scripts/easyapache
, and it is running now. When complete, there will be support for the gd php module.its definitely a package in Centos 5.5
is this vps cpanel? if so you have to install the gd library from the easyapache installer available in whm because by default on cpanel it disables php packages from being installed as it will break cpanel or parts of it
EasyApache on WHM only installs Zlib under GD. No info about how to install GD2 [for image manipulation for CodeIgnitor v2.0] in goDaddy Linux VPS cpanel