Cpanel Install Php Gd Library
VPS Installation. How do I enable the GD library on a cPanel server? On Step 5 select 'Exhaustive Options' and check the option for GD under 'PHP'. GD Library is a program installed on the server that allows programs to manipulate graphics. GD (Graphics Draw) can create images using line, arcs, texts, and multiple colors. GD is extensively used with PHP, so you can manipulate images in your PHP coding. Yes, GD library is already installed on.
When I tried to install php-gd library in my GoDaddy VPS with CentOS, It gives:
EEAA4 Answers
How To Install Php Gd Library
This is the command that failed:
Since EasyApache was unable to resolve it automatically you should:
1) Manually run the failed YUM command (shown above) via SSH
2) See if your particular error is addressed at http://www.cpanel.net/support/could_not_ensurepkgs.htm
3) Resolve the YUM problem manually
4) Re-run EasyApache
When running that command as suggested by the outputabove, you would see openssl conflicts between the i386 andi686 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. Whencomplete, there will be support for the gd php module.
First, check if the package wasn't excluded. Open up the yum config with vi /etc/yum.conf
and look for a line starting with exclude=
if php-gd
or php*
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 for yum
with an exclude-option.
Otherwise you could use RPMForge to install this package:
Bart De VosBart De Vosits 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
Operating System(s): Windows XP, Windows 7, Windows 8, Windows 8.1, Windows 10 Epson L210 Windows Printer 32-Bit Driver Download (20.42 MB) Epson L210 Windows Printer 64-Bit Driver Download (23.94 MB). Driver epson l210 windows 10 64 bit.
anthonysomersetanthonysomersetEasyApache 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
IainNot the answer you're looking for? Browse other questions tagged linuxapache-2.2centosgd or ask your own question.
Php Gd Module
I'm trying to use imagefttext. And I need to have GD library and/or freetype installed.I'm new to this kind of stuffs, How can I install GD library and freetype in Linux ?
Alireza Fallah4 Answers
Installing GD :
For CentOS / RedHat / Fedora :
For Debian/ubuntu :
Installing freetype :
For CentOS / RedHat / Fedora :
For Debian/ubuntu :
Don't forget to restart apache after that (if you are using apache):
CentOS / RedHat / Fedora :
Or
Debian/ubuntu :
Or
Alireza FallahAlireza FallahThings are pretty much simpler unless they are made confusing.
To Install GD library in Ubuntu
To Install Freetype in Ubuntu
XIMRXXIMRXPhp Gd Library Download
For CentOS:When installing php-gd you need to specify the version. I fixed it by running:sudo yum install php55-gd
Installing freetype:
sudo apt update && sudo apt install freetype2-demos