View Full Version : Installing GD for PHP 4.3.10 WinXP IIS

09-13-2005, 02:07 AM
I'd like to hear from any members who have recent experience installing the PHP GD extension on a windows system.

After 2 hrs of searching, I can't find any straight forward install instructions for my current test server configuration: WinXP; PHP 4.3.10; IIS 5.x

The www.boutell.com/gd/ website offers no insight, too much unix-speak. The site also doesnt host a php_gd2.dll for download. What is available is the win32 package for v2.0.33 but it's not for use with PHP.

As a possible solution, I downloaded PHP 4.3.2, unzipped the extensions folder to my php dir, and reconfigured php.ini to use this folder. However uncommenting the gd2 extension line results in permission errors, 'Access Denied'.

The extensions folder has appropriate permissions for IWAM and IUSR accounts - but no joy.

Any help getting the GD library working would be appreciated.

09-13-2005, 03:51 AM
To enable GD-support configure PHP --with-gd[=DIR], where DIR is the GD base install directory. To use the recommended bundled version of the GD library (which was first bundled in PHP 4.3.0), use the configure option --with-gd.

In Windows, you'll include the GD2 DLL php_gd2.dll as an extension in php.ini. The GD1 DLL php_gd.dll was removed in PHP 4.3.2. Also note that the preferred truecolor image functions, such as imagecreatetruecolor(), require GD2.
it includes a version of gd as "standard equipment." php_gd2.dll is included in a standard PHP installation for Windows, it's just not enabled by default.http://www.boutell.com/gd/faq.html

09-13-2005, 04:38 PM
Yes I have read that at a few sources, however it does not apply to PHP 4.3.10

"configure option --with-gd" means absolutely nothing to me.

The 4.3.10 standard windows installation does not include the gd2.dll and as I posted before, by including it from the 4.3.2 package, I'm confronted with permisson errors.

Any others who may have experience with this particular configuration?

09-13-2005, 05:57 PM
The 4.3.10 standard windows installation does not include the gd2.dll
Yes lol it does.

09-14-2005, 12:25 AM
Did you try looking in your php.ini? It my be installed, but commented out in you php.ini . Try searching for 'gd' in your php.ini file and see if its commented out.
Mine was:

Changed to this:

Then restarted the server and created a php file(called gd_info.php) with:

in it to test it.

It should have something like this in it:
array(12) { ["GD Version"]=> string(27) "bundled (2.0.28 compatible)" ["FreeType Support"]=> bool(true) ["FreeType Linkage"]=> string(13) "with freetype" ["T1Lib Support"]=> bool(true) ["GIF Read Support"]=> bool(true) ["GIF Create Support"]=> bool(true) ["JPG Support"]=> bool(true) ["PNG Support"]=> bool(true) ["WBMP Support"]=> bool(true) ["XPM Support"]=> bool(false) ["XBM Support"]=> bool(true) ["JIS-mapped Japanese Font Support"]=> bool(false) }

Hopefully this works for you.

09-14-2005, 01:43 AM
I did a standard installation of 4.3.10 and no GD functionality was included. No gd2.dll file was included with the install. I have used a previous version of gd2.dll and uncommented the extension line but receive permission errors when php tries to load the extension file.

As already mentioned, I gave both the .ddl file IUSR and IWAM permissions to read & execute, but the access errors persist. Any other ideas?

09-14-2005, 02:00 AM
OK- problem solved. The IUSR and IWAM accounts were domain accounts. With the test server running locally, these accounts had to be objects of the local machine. Once the accounts were changed over to local and not network, bang, everything works fine.

Thx for ur suggestions guys.