I am working with a server on the Amazon AWS Cloud. I have PHP & MySQL Running on a Linux Server with Apache. I am attempting to get the GD Image Library working.

I have run yum -y install php-gd. The server ran the install, and when I now run rpm -q php-gd , it says php-gd-5.3.8-3.20.amzn1.x86_64 , which I think means that the GD Library is installed. When I navigate to /etc/php.d/ , I see the gd.ini file. The gd.ini file contains the text extension=gd.so. I have restarted apache several times.

After all this, I cannot get any of the GD functions to work.

I have been lead to believe that I need to add --with-gd[=DIR] to my PHP configuration, but I do not know where to do this, or what to use in the place of the [=DIR].

Any help would be greatly appreciated.

link|improve this question
1  
You do not need to add --with-gd - it is a compile time, configuration option to build PHP with GD support. It is possible that your installation of PHP is using a different php.ini file than the one expected. Create a script containing <?php phpinfo(); ?> and look for a section 'gd' (don't use php -i from the command line as it may use a different php.ini file). Also note the 'Loaded Configuration File' and 'Scan this dir for additional .ini files'. – cyberx86 Jan 2 at 1:13
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.