I know that a lot of people have had this problem, 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.by doing phpinfo(): what is your extension path?
where is php .ini located?
things i found:
well the solution was that I had my php.ini file in windows\system32 and not c:\php...
when I moved my php.ini file the changes took and GD looks to be installed.. Thank you both
I had a similar problem. Under Windows XP, I have php.ini in the windows directory. I simply changed the path of the extension library in php.ini from:
extension_dir = "c:\php"
to:
extension_dir = "c:\php\extensions"php.ini is in C:\PHP, and php_info() correctly points to it. My extensions folder is the default - \ext - and the .ini file correctly points to it. I've also tried adding a trailing slash - \ext\ - as suggested by one poster in a different forum, which didn't resolve the issue.are other extensions loading properly?
are there any special permissions on these folders set by the win32 systemIs display_errors set to on? Have you tried turning on "display_startup_errors" and restarting your webserver to see if you get any messages?I think you installed from the MSI file - I did, and it didnt work. Neither did the non threadsave PECL version. However when I downloaded the full zip file and copied the php_gd2.dll from there (it is 4k smaller than the version in PECL - has someone forgotten to do a binary copy?), GD sprang into life! However EXIF is still broken.... sniffHA sorted that one too. php_mbstring.dll is loaded after php_exif.dll by the installer. Change the order in php.ini and hey presto, exif loads too....
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.by doing phpinfo(): what is your extension path?
where is php .ini located?
things i found:
well the solution was that I had my php.ini file in windows\system32 and not c:\php...
when I moved my php.ini file the changes took and GD looks to be installed.. Thank you both
I had a similar problem. Under Windows XP, I have php.ini in the windows directory. I simply changed the path of the extension library in php.ini from:
extension_dir = "c:\php"
to:
extension_dir = "c:\php\extensions"php.ini is in C:\PHP, and php_info() correctly points to it. My extensions folder is the default - \ext - and the .ini file correctly points to it. I've also tried adding a trailing slash - \ext\ - as suggested by one poster in a different forum, which didn't resolve the issue.are other extensions loading properly?
are there any special permissions on these folders set by the win32 systemIs display_errors set to on? Have you tried turning on "display_startup_errors" and restarting your webserver to see if you get any messages?I think you installed from the MSI file - I did, and it didnt work. Neither did the non threadsave PECL version. However when I downloaded the full zip file and copied the php_gd2.dll from there (it is 4k smaller than the version in PECL - has someone forgotten to do a binary copy?), GD sprang into life! However EXIF is still broken.... sniffHA sorted that one too. php_mbstring.dll is loaded after php_exif.dll by the installer. Change the order in php.ini and hey presto, exif loads too....