views:

243

answers:

2

How does one enable (or perhaps I need to install) GD when my phpinfo() output in "Configure Command" says; --without-gd ?

I also have nothing in my phpinfo() output "Core" that lists "gd"

PHP Version 5.2.4 on AWS.

Thanks!

A: 

if you are on a Debian based server (such as Ubuntu) you can run the following command:

apt-get install php5-gd

Then once it is complete run:

/etc/init.d/apache2 restart

This will restart your server and enable GD in PHP.

If you are on another type of system you will need to use something else (like yum install) or compile directly into PHP.

angryCodeMonkey
Thanks for the info. Anyway I can tell in that phpinfo()?
Shu
There should be an "gd" section in the phpinfo(). Something like: GD Support enabled
Bob Fanger
@Shu - Did my suggestion end up working? Just wanting to see if that was the issue.
angryCodeMonkey
A: 

I recommend you use ImageMagick aka Imagick instead of GD, it's substantially faster and more feature rich. It was created to replace GD.

There's even a great blog that gives you real world examples of Imagick in action.

TravisO