Click to See Complete Forum and Search --> : IIS php, gd installation issue


maever
05-09-2007, 06:52 AM
I have windows 2003 with IIS 6.0 with PHP 5.2.0 installed as ISAPI module, this works just fine.
as you could see here: http://209.190.6.210/cp/info.php

Now the main issue is gd2 lib will simply not load.
All basic PHP functions work fine, when i try to load any GD function it gives the error:
Fatal error: Call to undefined function imagecreatetruecolor() in C:\XXXXXXX on line X
Basically refering to the fact that it doesn't recognize the GD2 lib as activated.

Now i know it normally is activated by remove the ' ; ' in the php.ini in front of :
it now looks like this:

extension=php_gd2.dll

My ext dir is also correctly set as this is the line in my php.ini

extension_dir = "c:\php\ext"

which is the correct dir for my extentions

now after changing this ofcourse i properly restarted IIS.
but without any result, GD is still not enabled.

I also tried other modules, nothing seems to show changes in the phpinfo() command.

Would there be any things i forgot ?
Maybe some access rights on the module files i need to set ?

any help would be greatly appriciated

bradgrafelman
05-10-2007, 01:33 AM
When you installed PHP, did you follow the instructions found here: install.windows.manual ? If so, you would have noticed these steps:

1. Add your PHP directory to your system's PATH environment variable. (FAQ found here (http://www.php.net/manual/en/faq.installation.php#faq.installation.addtopath))
2. Since you're using IIS, you need the PHPRC environment variable so that PHP knows where your php.ini file is. (FAQ found here (http://www.php.net/manual/en/faq.installation.php#faq.installation.phprc))
3. Make sure you completely restart your computer after making the above two changes.