# GD Module

**URL:** https://forum.kirupa.com/t/gd-module/261386
**Category:** programming
**Created:** [May 27, 2008, 6:43am UTC](https://forum.kirupa.com/t/gd-module/261386 "2008-05-27T06:43:07Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![jojus](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jojus](https://forum.kirupa.com/u/jojus)
#### Post date: [May 27, 2008, 6:43am UTC](https://forum.kirupa.com/t/gd-module/261386/1 "2008-05-27T06:43:07Z")

</div>

Anyone know why phpinfo does not show GD info…  
i tried this command in **putty** - rpm -qa |grep gd  
and got the result

gd-2.0.28-5.4E.el4\_6.1  
gd-progs-2.0.28-5.4E.el4\_6.1  
gdbm-devel-1.8.0-24  
gdb-6.3.0.0-1.153.el4\_6.2  
gdbm-1.8.0-24  
sysklogd-1.4.1-26\_EL  
gd-devel-2.0.28-5.4E.el4\_6.1

I don’t know anything, so i will need to be walked through step by step. I have no experience with ssh, line commands, or putty so spell it out for me thanks.

if GD is installed, why its not showing in phpinfo???  
If GD is installed already, how can i know??? im using CAPTCHA or for dynamic image generation with php scripts for image verification, so is must…

Thanks 🙂

---

<div class="post-metadata">

### Author: ![djheru](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/djheru/32/3190_2.png) [@djheru](https://forum.kirupa.com/u/djheru)
#### Post date: [May 27, 2008, 6:25pm UTC](https://forum.kirupa.com/t/gd-module/261386/2 "2008-05-27T18:25:12Z")

</div>

If the server admin installs GD using YUM, GD might not show up in phpinfo IIRC

---

<div class="post-metadata">

### Author: ![jojus](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jojus](https://forum.kirupa.com/u/jojus)
#### Post date: [May 28, 2008, 5:48am UTC](https://forum.kirupa.com/t/gd-module/261386/3 "2008-05-28T05:48:57Z")

</div>

Hi Ahmed,

Thanks for your reply…

i tried php -info | grep GD

and got the result  
GD Support =\> enabled  
GD Version =\> bundled (2.0.34 compatible)

So this means that GD is installed & enabled…  
My question here is why its not showing in phpinfo and php scripts related to GD not working… for eg: i tried to do \<? print\_r(gd\_info); ?\> but gives an error Fatal Error: Call to undefined function gd\_info()…

Awaiting your reply…  
Thanks

[quote=ahmednuaman;2331737]It should normally say the following:

GD Support =\> enabled  
GD Version =\> bundled (2.0.34 compatible)

Try this in SSH:  
php -info | grep GD[/quote]

---

<div class="post-metadata">

### Author: ![jojus](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jojus](https://forum.kirupa.com/u/jojus)
#### Post date: [May 28, 2008, 5:53am UTC](https://forum.kirupa.com/t/gd-module/261386/4 "2008-05-28T05:53:05Z")

</div>

Thanks for your reply…

when i tried YUM commands in SSH, it says  
-jailshell: yum: command not found

and functions related to GD are not working in php script.

Thanks

> [@djheru;2331793](#):
>
> If the server admin installs GD using YUM, GD might not show up in phpinfo IIRC

---

<div class="post-metadata">

### Author: ![djheru](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/djheru/32/3190_2.png) [@djheru](https://forum.kirupa.com/u/djheru)
#### Post date: [May 28, 2008, 6:07am UTC](https://forum.kirupa.com/t/gd-module/261386/5 "2008-05-28T06:07:33Z")

</div>

Do you have the php shared object installed with the library? You have to configure php --with gd. If it is, it should show up on your phpinfo page under the configure command. The only time I’ve seen it not show up on phpinfo()is when it was installed using yum. I wonder if it is a similar issue if installed using RPM?

---

<div class="post-metadata">

### Author: ![jojus](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jojus](https://forum.kirupa.com/u/jojus)
#### Post date: [May 29, 2008, 7:10am UTC](https://forum.kirupa.com/t/gd-module/261386/6 "2008-05-29T07:10:49Z")

</div>

Thanks a lot for spending time for my problem…  
GD started working now…

> [@ahmednuaman;2332225](#):
>
> Have you tried running some tests to see if GD is working? [PHP: imagecreatefromjpeg - Manual](http://uk.php.net/manual/en/function.imagecreatefromjpeg.php)

---

<div class="post-metadata">

### Author: ![jojus](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jojus](https://forum.kirupa.com/u/jojus)
#### Post date: [May 29, 2008, 7:11am UTC](https://forum.kirupa.com/t/gd-module/261386/7 "2008-05-29T07:11:28Z")

</div>

Thanks a lot for spending time for my problem…  
GD started working now…

> [@djheru;2332172](#):
>
> Do you have the php shared object installed with the library? You have to configure php --with gd. If it is, it should show up on your phpinfo page under the configure command. The only time I’ve seen it not show up on phpinfo()is when it was installed using yum. I wonder if it is a similar issue if installed using RPM?
