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.
Configuring GD Library into Apache properly
Moderator: General Moderators
- 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
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)