Installing GD Library on Windows Server 2003/IIS6?
Name is Mike. I am the lead web developer for my company, Holoweb, Inc and we recently started working with PHP/MySQL. We started by installing PHP5/MySQL on our web server which is Windows Server 2003 with IIS6. Everything is working properly, MySQL, PHP5, etc... We were able to install Wordpress and everything seems to work properly besides a certain plugin that uses the GD Image Library.
Now I know that we needed to download the dll and place it in the c:\php5\ext\ folder and then edit the php.ini file to uncomment the "extension=php_gd2.dll" section.
All that is done, I restarted IIS and i'm still getting this error:
GD Library Error: imagecreatetruecolor does not exist
Anyone have any suggestions as to how I should go about fixing this issue?
All the best!
Lead Web Developer | Holoweb, Inc
Phone: 952-452-1463 ext 801
I'm rather late participating in this thread (new to the forum) but thought I'd add my $0.02 as this is a commonplace issue and some hints might help others having the same problem. Although it's not possible to say for sure what your particular problem might be, perhaps a few tips might help.
As Wildhoney asks above, your extension_dir configuration directive is likely not pointing to the correct location, which should be to the ext directory found in your PHP installation directory. If this is the case, PHP won't be able to find the gd2 DLL.
However, given the nature of this particular error (imagecreatetruecolor does not exist) I'd speculate there's some DLL mixup on your system, and you have the GD DLL installed rather than the GD2 DLL. I bring this up because the imagecreatetruecolor functions are not found in the GD1 DLL. Check your PHP installation's ext directory to see which version you have.