Enabling/installing GD extension? --without-gd


Question

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.

1
48
9/9/2011 11:46:48 AM

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.

62
2/17/2010 7:03:35 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon