0 votes
1 view
in AWS by (19.2k points)

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 Answer

0 votes
by (44.6k points)

If the system is Debian based server such as Ubuntu then run this command:

apt-get install php5-gd

After completion, to restart the apache2 web server run this:

/etc/init.d/apache2 restart

This will restart your server and also enable GD in PHP

If not Ubuntu or a Linux based server, try yum install

For PHP7.x and above use the below command:

sudo apt-get install php7.0-gd

and then restart your web server.

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers !