troubleshooting Question

GD2 extension not working on PHP for Windows

Avatar of rpm
rpmFlag for United Kingdom of Great Britain and Northern Ireland asked on
PHPMicrosoft IIS Web Server
32 Comments1 Solution1544 ViewsLast Modified:

I am used to ASP, rather than PHP, so I am not experinced in PHP.

I am trying to migrate a PHP site from a Linux server to my Windows Server. Most of the site is working, but I am getting the following error:

PHP Fatal error: Call to undefined function imagecreatetruecolor() in D:\InetPub\Hiltfields\www\hfadmin\thumbnailer.php on line 27

I have confirmed that my php.ini contains:

extension_dir ="C:\PHP5\ext"



I have also confirmed that there is a file called php_gd2.dll in C:\PHP5\ext

I don't know if this is relevant, but I tried to regsvr32 on php_gd2.dll and I get:

LoadLibrary("C:\PHP5\ext\php_gd2.dll") failed - The specified module could not be found.

What else do I need to do.

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 32 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 32 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros