pixeldamage Posted March 2, 2007 Share Posted March 2, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/40887-php_gd2dll-not-loading-ive-tried-every-trick-in-the-book/ Share on other sites More sharing options...
redarrow Posted March 2, 2007 Share Posted March 2, 2007 post your php.ini file x out all privert stuff please cheers. Quote Link to comment https://forums.phpfreaks.com/topic/40887-php_gd2dll-not-loading-ive-tried-every-trick-in-the-book/#findComment-198000 Share on other sites More sharing options...
pixeldamage Posted March 2, 2007 Author Share Posted March 2, 2007 At the moment (after much frustration and a reinstall), it's a default PHP 5 .ini with the GD extension enabled. I've made no additional changes to it. Quote Link to comment https://forums.phpfreaks.com/topic/40887-php_gd2dll-not-loading-ive-tried-every-trick-in-the-book/#findComment-198094 Share on other sites More sharing options...
wildteen88 Posted March 3, 2007 Share Posted March 3, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/40887-php_gd2dll-not-loading-ive-tried-every-trick-in-the-book/#findComment-198478 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.