How do you enable GD in PHP when installing via RPM?

5,372

Solution 1

Typically in most modern packages this is done by installing the php-gd package with your package manager.

for RHEL 5.3 try:

yum install php5-gd

Solution 2

[root@a-sys1 ~]# yum search "php" | grep -i gd
php-gd.i386 : A module for PHP applications for using the gd graphics library

[root@a-sys1 ~]# yum install php-gd
Loading "dellsysidplugin2" plugin
etc etc

Share:
5,372

Related videos on Youtube

GloryFish
Author by

GloryFish

Web developer, PHP, SQL, C#, CodeIgniter, Drupal

Updated on September 17, 2022

Comments

  • GloryFish
    GloryFish over 1 year

    We are working on a client's sever that has PHP running without GD. We would like to enable GD support in PHP on that machine. What is the most straightforward way to enable GD. Is there a way to do it via RPM?

    Thanks!

    Update:

    Currently running:

    RedHat Enterprise Linux Server version 5.3 Using RPM

  • kodziek
    kodziek almost 15 years
    Good description of how to find the correct module.
  • koustuv
    koustuv over 6 years
    I am getting Error: Package: gd-last-2.2.5-1.el6.remi.x86_64 (remi) Requires: libwebp.so.5()(64bit)