Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enabling/installing GD extension? --without-gd

Tags:

php

amazon-ec2

gd

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.

like image 338
Shu Avatar asked Feb 17 '10 18:02

Shu


People also ask

Which function should be run to watch that GD Support is enabled or not?

To know this we can use phpinfo function and check GD support is available or not.


1 Answers

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

apt-get install php-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.

like image 108
Shane Avatar answered Oct 03 '22 06:10

Shane