how to make php_gd2.dll working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nert
    New Member
    • Nov 2006
    • 64

    how to make php_gd2.dll working

    hello,

    i had the extension php_gd2.dll, and put it on "c:\php\ext " ( this is my extension_dir ), i also uncommented the php_gd2.dll in my php.ini, i am using PHP 5.1.2.

    now my problem was, i always ecounter this error message:
    [PHP]
    PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php _gd2.dll' - The specified module could not be found. in Unknown on line 0

    [/PHP]

    does anyone know about this? i've been searching about this problem from the internet, right now i haven't find the answer yet..

    i'll appreciate any comments and suggestions regarding my problem.
    thanks in advance.


    --nert (^_^)
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    Suggestions:

    1. stop and restart your server
    2. run phpinfo() and look at the 'gd' section of the report. First line should read "GD Support enabled ". Second line "GD Version bundled ...."

    Ronald :cool:

    Comment

    • Nert
      New Member
      • Nov 2006
      • 64

      #3
      Originally posted by ronverdonk
      Suggestions:

      1. stop and restart your server
      2. run phpinfo() and look at the 'gd' section of the report. First line should read "GD Support enabled ". Second line "GD Version bundled ...."

      Ronald :cool:
      hi Ronald,

      thanks for the reply, i've already restarted the server many times.., and still my phpinfo() doesn't display the 'gd' section. What i found is only this

      Configure Command = cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"
      i'm sorry, because this is just the first time i work with this php extension, and don't know how to configure it so that PHP can able to load it. Right now i'm still searching the web for any instructions on how to make php_gd2.dll be loaded by PHP.

      anyone out there can help me?

      Comment

      • Nert
        New Member
        • Nov 2006
        • 64

        #4
        i still can't figure out why my php.ini can't load the php_gd2.dll extension
        here is my php.ini configuration

        the extension_dir was set correctly
        ; Directory in which the loadable extensions (modules) reside.
        extension_dir = "c:\PHP\ext "
        the php_gd2.dll extension was uncommented
        ;
        ;extension=php_ mbstring.dll
        ;extension=php_ bz2.dll
        ;extension=php_ curl.dll
        ;extension=php_ dba.dll
        ;extension=php_ dbase.dll
        ;extension=php_ exif.dll
        ;extension=php_ fdf.dll
        ;extension=php_ filepro.dll
        extension=php_g d2.dll
        i've already put the php_gd2.dll file in my extension folder (c:\PHP\ext) and i restarted my server many times but still can't find any gd section in my phpinfo.

        this error message always appear at the bottom of my page.
        PHP Warning: PHP Startup: Unable to load dynamic library 'c:\PHP\ext\php _gd2.dll' - The specified module could not be found. in Unknown on line 0
        anyone knows how to solve this problem? or anyone had encountered this problem and find solution? please help.., i am new with this php extension.

        thanks in advance.

        --nert

        Comment

        • Motoma
          Recognized Expert Specialist
          • Jan 2007
          • 3236

          #5
          I believe you have set up the extension_dir variable incorrectly, try swapping the direction of your slashes:
          Code:
          extension_dir = "c:/PHP/ext/"

          Comment

          • Nert
            New Member
            • Nov 2006
            • 64

            #6
            Originally posted by Motoma
            I believe you have set up the extension_dir variable incorrectly, try swapping the direction of your slashes:
            Code:
            extension_dir = "c:/PHP/ext/"
            thank's Motoma,

            ok ahmmn, i've change the direction of my slashes and restarted my server but still my php can't load the php_gd2.dll. Is there anything that i need to change? am i missing something? please post me an instructions on how to run php 5.1.2 with GD enabled.., right now i'm still searching over the web to find solution to this problem. Thanks.


            --nert(^_^)

            Comment

            • Motoma
              Recognized Expert Specialist
              • Jan 2007
              • 3236

              #7
              Originally posted by Nert
              thank's Motoma,

              ok ahmmn, i've change the direction of my slashes and restarted my server but still my php can't load the php_gd2.dll. Is there anything that i need to change? am i missing something? please post me an instructions on how to run php 5.1.2 with GD enabled.., right now i'm still searching over the web to find solution to this problem. Thanks.


              --nert(^_^)
              Could you post back a little more information about your system? Things like what web-server you are using as well as they type of php installation you used.

              Comment

              • Nert
                New Member
                • Nov 2006
                • 64

                #8
                Originally posted by Motoma
                Could you post back a little more information about your system? Things like what web-server you are using as well as they type of php installation you used.
                thanks for the help anyway Motoma,

                I already have PHP now with GD enabled.., what i just did was to install the lower version of PHP, the PHP 4.4.4 and downloaded it's packages.., and check my phpinfo and there's GD instantly enabled.., although not really instant i still configure php.ini so that PHP will load the php_gd2.dll extensions.

                anyway this is not the last time i will post a question about php in this forum.., see you soon. thanks..(^_^)

                --nert

                Comment

                • Drekey

                  #9
                  It all has to do with the version of the GD dll. Download a php pack with your version and all extensions and IIS won't cry anymore.

                  Comment

                  • gonenc
                    New Member
                    • May 2015
                    • 1

                    #10
                    Edit httpd.conf and Add
                    Code:
                    PHPIniDir "C:/PHP"

                    Comment

                    Working...