Hi

I am trying to install gdlib on my IIS.
I am running IIS 5 with php 4.3.3

I have downloaded and installed php_gd2.dll and php_gd.dll in /php/extensions.
I have remove the ; in php.ini

But - the php won't run at all.

Anyone can give me (or point me to) a step by step guide

/Jan

    7 days later

    Have you tryed Apache and php? that will make it easyer to insatll i think!

      Okay have you tryed the binery version of php or are you useing the msi installer?

      I used IIS before it woked okay but i had many problems with PHP sow i change it to apache then everything worked fine...

      And i can say it worked beter on my 2003 server then IIS and i'am a windows nerd!!

      Test Apache for windows it easy or if you have time its easyer to get php to function i apache... i can help you with seting up apache if you need help with it..

        a month later

        Alright..so you've got IIS installed (not apache). the most fun way to do this is to download the binaries in the zip file. extract them to your favorite place and then the most fun part begins...

        open the iis snap-in right click on the websites node of the tree and select properties. go to the home directory tab and click the config button. in the form that pops up click add. browse for the php4isapi.dll file for your exacutable and then put the extension you wish to you use in the second text box. (make sure you put a dot in front of it...like .php not php) click okay. click ok again.

        now go to isapi filters...click add and do the same for the executable and give it a nice name like "PHP". clique d'accord. now make sure php.ini is in your windows directory and that php4ts.dll is copied to the system32 directory along with any other dlls you plan to use (to make sure the system can find them). remove the ; from in front of the gdlib extension line in php.ini restart iis and you're ready to go.

          Yeah...sounds a lot easier than
          uncomment gdlib dll line
          restart apache

          Or just compile --with-gd

            it is easier-not to mention less time consuming and i won't have to bring down IIS for the change to take effect. defenitely a downfall of apache.

              Originally posted by jkimball4
              it is easier

              You've made a compelling argument. This swayed me. Your right, much easier. :o

                your sarcasm is noted. perhaps if your webserver was worth running than you would consider IIS as a viable alternative, but until then it doesn't really matter for the stupid crap we do. And of course in this case, since the user i'm trying to help is a windows person IIS is probably the way to go if his version of windows has it. on the other hand, if it doesn't apache would be a way to go.

                  a month later

                  Hi,

                  I have just started to learn php as I am making a photo gallery.

                  I am trying to get the gd thing working on my computer. I have just set up PHP as I want to use the image manipulation. I have tried to follow your instructions but the zip I downloaded does not have this php4ts.dll in it.

                  Can you send me a direct link to the file I need?

                  I have changed the line in the php.ini and I get the following error: Unknown(): Unable to load dynamic library './php_gd2.dll' - The specified module could not be found. Because I do not have it.

                  Help.

                  Thanks

                  Leah

                    8 days later

                    Jeez, why does the damn Apache vs. IIS argument pop up all the time, in completely irrelevant situations! You Open Source folk, just shut up for a second. 🙂

                    janb, the solution to your problem is very, very simple. You have IIS working with PHP just fine. Your only problem is that it doesn't recognise the GD2 library and therefore won't run?

                    OK, put the php_gd2.dll file in the same directory as your php.exe file (on my Win2K/IIS systems this is \Program Files\PHP).

                    And that's it!!!

                    You need to remove the ; from the line in php.ini that specifies the GD2 library, but you say you've already done this.

                    Hope this helps.

                      15 days later

                      Hi everyone, I'm new here 🆒

                      I can't get GD to work properly, my PHP is just not getting it.

                      I've uncommented the gd line in php.ini and have a copy on my root PHP directory, another in extentions folder (just to be safe).

                      Still doesn't work though, I didn't do what jkimball4 said about the IIS snap-in, which is the Internet Services Manager yes?

                      what's up though?

                      How do you test if GD is running?

                      I have a succesful GD script running on a remote server (i didn't write it), LAMP platform. but locally on IIS, I get nothing, just an error, no helpfull message, no "GD is not found" etc.

                      (And yes I love both IIS and Apache. so wars here)

                        Hi niceBoy 🙂

                        If you're running this set-up on a local machine then presumably you can turn on all error reporting using php.ini and see what errors it's causing when you try to use the GD functions? That might help.

                        Presumably (and forgive me if I'm being silly here) you've uncommented the correct library? You've got the gd.dll lib, and you've uncommented that same one? Check you haven't got hold of the gd2.dll and uncommented the original gd library. (They're different.)

                        You could also check file permissions on the image you're trying to manipulate, and maybe the temp dir too?

                        Also try your set-up with the simplest image manipulation code you possibly can. I don't know what the LAMP platform is - maybe it requires other modules that your IIS installation doesn't have enabled?

                        Hope this helps.

                          11 days later

                          I recently signed a NT web hosting packet but they does not installed GDlib. Only support php. Is there a way I can setup up to use GDlib by copying the runtime to my folder. Note that I do not have access to the php.ini file. Will the Perl version work in this case?

                          Yours,
                          Vincent

                            Hi vinsgoh,

                            I know this sounds really obvious, but easiest way is to pop your webhost an email or call, asking (begging/treatnening) to have GD installed. Or you'll find another host?

                            Maybe let them know installing GD is not too hard

                            1. Aquire GD from the PHP.zip download.
                              make sure php_gd2.dll is in the extensions folder in PHP dir. Set proper permissions.

                            2. make sure in PHP.ini, this line is UNcommented
                              extension=php_gd2.dll

                            I think they might have to restart IIS.

                            Its as simple as that.

                            Why did you choose PHP on NT anyways? they probably run PHP as a CGI, which is slower ... anyhow you probably have your reasons

                            Not sure though if GD lib can be set with ini_set(); Anybody know?

                              2 months later

                              I have been experiencing the same problem with php v4.3.6 and I tried the aforementioned solution, however my error message changed from:

                              PHP Warning: Unknown(): Unable to load dynamic library './php_gd2.dll' - The specified module could not be found.

                              to:

                              PHP Warning: Unknown(): Unable to load dynamic library './php_gd2.dll' - Access is denied.

                              Have any ideas? Thanks in advance.

                              Originally posted by sublimatica
                              Jeez, why does the damn Apache vs. IIS argument pop up all the time, in completely irrelevant situations! You Open Source folk, just shut up for a second. 🙂

                              janb, the solution to your problem is very, very simple. You have IIS working with PHP just fine. Your only problem is that it doesn't recognise the GD2 library and therefore won't run?

                              OK, put the php_gd2.dll file in the same directory as your php.exe file (on my Win2K/IIS systems this is \Program Files\PHP).

                              And that's it!!!

                              You need to remove the ; from the line in php.ini that specifies the GD2 library, but you say you've already done this.

                              Hope this helps.

                                Write a Reply...