Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k 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.4k 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

0 votes
1 answer
asked Jul 31, 2019 in AWS by yuvraj (19.1k points)

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
0 votes
1 answer
asked Jul 31, 2019 in AWS by yuvraj (19.1k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

30.5k questions

32.5k answers

500 comments

108k users

Browse Categories

...