How to make php_gd2.dll working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • roandres
    New Member
    • Feb 2010
    • 3

    How to make php_gd2.dll working

    Hello,

    I am trying hard to configure php_gd2.dll to work with my apache 2.2 web server and not getting it... I have copied php_gd2.dll in my ext php directory and have uncommented the extension=php_g d2.dll line of my php.ini file and

    I have also set my extension_dir to:
    extension_dir = "E:\PHP\ext "
    I have tried switching the back slashes to forward slashes but no

    I have PHP 5.2.5
    I have Apache 2.2
    I'm using Windows XP Pro SP 2

    And still not able to get php_gd2.dll to work! Can someone please help me solve this issue?

    The error I'm getting is:
    PHP Warning: PHP Startup: gd: Unable to initialize module
    Module compiled with module API=20090626, debug=0, thread-safety=1
    PHP compiled with module API=20060613, debug=0, thread-safety=1
    These options need to match
    in Unknown on line 0

    I have also read Nert solution post (http://bytes.com/topic/php/answers/585340-how-make-php_gd2-dll-working) and don't want to downgrade my PHP installation because I have 2 Joomla sites and 1 Moodle site running under it.
  • dgreenhouse
    Recognized Expert Contributor
    • May 2008
    • 250

    #2
    I'd think you'd need would find a gd module that's compiled against the same sources.

    But since I've only run Apache on Linux/Unix and IIS on windows, I might be missing something obvious to those who run Apache on Windows.

    Seems like you're not the only one having this issue...

    Comment

    • roandres
      New Member
      • Feb 2010
      • 3

      #3
      Thank you dgreenhouse.

      I think you are in the correct solution path! I have tried using gd modules from the latest version of php-5.3.1-Win32-VC6-x86 and from version 5.2.1-nts-win32 and haven't got it working! I will keep searching the internet for a php_gd2.dll module from PHP 5.2.5 version...

      Comment

      • roandres
        New Member
        • Feb 2010
        • 3

        #4
        Yes man I got it working!!! you were right it was the version of the php_gd2.dll !
        I found an excellent website on google which is:


        Selected the php5.2-win32-latest.zip file uncompressed it copy the php_gd2.dll module from the ext directory into my ext directory uncommented the extension=php_g d2.dll line in my php.ini configuration file and now it shows in my php_info() file and works like a charm!!!

        Regards!

        Comment

        Working...