Jump to content

Recommended Posts

I know that a lot of people have had this problem, based on the number of forum results returned for a search of php_gd2.dll, so to start, I've tried all of the following:

 

On Windows Server 2003, with PHP 5 loaded with ISAPI module -

 

> Removed the semicolon in php.ini extensions list for php_gd2.dll

> Verified that php_gd2.dll is in the correct directory

> Verified that the php.ini is pointed to the correct extensions directory

> Verified through php_info() that it's looking at the correct php.ini

> Attempted to fix problem by placing php_gd2.dll in C:\PHP

> Attempted to fix problem by placing php_gd2.dll in C:\WINDOWS and C:\WINDOWS\SYSTEM32

> Added C:\PHP\ext to environment paths

> Restarted the server countless times

> Verified correct security settings for internet guest accounts, etc.

 

PHP itself runs just fine, but the GD library, which is an absolute requirement for our company's site, will not load. It doesn't show up in the php_info() display and any calls to GD functions throw errors.

 

I've scoured multiple forums and websites, and tried every 'fix' I've seen, with no luck.

 

If anyone has any idea as to what the problem is, I would greatly appreciate any help. I won't lie, I'm desperate for an answer.

Turn on a setting called "display_startup_errors" in the php.ini (around line 361). Save an restart IIS. If PHP is hav'ing trouble loading the extension it should show an error message when restarting.

 

> Added C:\PHP\ext to environment paths

Also it is best to add the whole PHP folder to system PATH rather than part of the PHP folder. So edit your system path variable and change C:\PHP\ext to just C:\PHP instead.

 

Also keep all PHP files in the PHP folder. Try to not move them across the file system.

 

Also make sure you have setup the "extension_dir" setting too in the php.ini

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.