« Previous Next »

Not Answered Thread: php not loading all extensions iis7.5

Last post 11-02-2009 1:28 PM by don.raman. 3 replies.

 

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 11-02-2009, 5:57 AM

    • rkr31
    • Top 150 Contributor
    • Joined on 05-01-2007, 10:15 AM
    • Posts 46

    php not loading all extensions iis7.5

    Hi

    I installed php 5.2.11 using fastCGI onto windows 2008R2 using the wpi and it seems to work fine.  The issue i have is that i can't load any new extensions.

    I tried to add  the following but the do not show up in phpinfo()

    extension=php_mssql.dll
    extension=php_mcrypt.dll
    extension=php_mhash.dll
    extension=php_mime_magic.dll

    I have set my extensiondir to c:\php\ext in php.ini and  have the following files in that folder:

    php_mssql.dll
    php_mcrypt.dll
    php_hash.dll
    php_mime_magic.dll

    i also have the follwoing in c:\php

    libmcrypt.dll
    libmhash.dll
    libmysql.dll

    Any ideas?

     

  • 11-02-2009, 6:27 AM In reply to

    • kehand
    • Top 100 Contributor
    • Joined on 09-02-2008, 10:03 PM
    • Posts 72

    Re: php not loading all extensions iis7.5

    Hi,

    If you've installed PHP through Web PI, then your PHP installation is located at C:\program files (x86)\PHP (assuming C:\ is your system drive).

    Are you editing the php.ini file located at C:\PHP\php.ini or the one at C:\program files (x86)\PHP\php.ini? Please make sure it is the latter.

    If it is indeed the latter, could you also try to put the lib*.dll files in the same location as the ini file (C:\program files (x86)\php).

    Lastly, you should recycle the PHP processes to pick up the changes immediately or wait until the appropriate timeouts occur.

    All the PHP directory locations (including the location of the ini file being loaded) can be found in the phpinfo() page.

    HTH,

    Kern

  • 11-02-2009, 1:22 PM In reply to

    Re: php not loading all extensions iis7.5

    Hi,

    Well this means some of the dependant DLL is missing and hence those extensions are not getting loaded. Run

    C:\php\php-cgi.exe -v

    from command prompt. This will give you an idea what DLL's are missing. if this doesn't give errors, load the PHPINFO file and ensure that proper INI file is getting loaded and not otherwise.

    Also ensure that 'C:\php' is in your PATH environment variable.

    Thanks,

    Don.

  • 11-02-2009, 1:28 PM In reply to

    Re: php not loading all extensions iis7.5

    You can also follow this blog here.

    Thanks,

    Don.

Page 1 of 1 (4 items)