Configuring GD Library into Apache properly

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
tales585
Forum Newbie
Posts: 1
Joined: Sat Mar 27, 2010 7:35 pm

Configuring GD Library into Apache properly

Post by tales585 »

Hi,
I've been trying to get the GD library installed onto Apache but running into a fatal error. The error reads, "Fatal error: Call to undefined function gd_info()". Now, I know that this means that the GD Library isn't configured properly and tried many different things to get the GD Library operational. A few things I've tried:

-Adding my directory to the PATH environmental variable
-Uncommenting and changing the extension_dir variable in the php.ini to extension_dir = "./extensions".
-Uncommenting extension=php_gd2.dll in the php.ini.
-Adding the php.ini file (a copy) to the apache folder (did not know what that would accomplish though...)

In each item I have always restarted the server but to no avail. I'm hoping that someone out there experienced this and can help me solve this dilemma. Thanks in advance!

P.S: I'm using Apache 2.2, PHP 5 on Windows Vista.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Configuring GD Library into Apache properly

Post by Christopher »

The php.ini file goes wherever the PHP is installed. That is specified in the httpd.conf file as the PHPIniDir directive. It could be /etc/php, /usr/local/lib/php, etc.
(#10850)
Post Reply