php not loading all extensions iis7.5RSS

3 replies

Last post Nov 02, 2009 01:28 PM by don.raman

  • php not loading all extensions iis7.5

    Nov 02, 2009 05:57 AM|rkr31|LINK

    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?

     

  • kehand kehand

    70 Posts

    Microsoft

    Re: php not loading all extensions iis7.5

    Nov 02, 2009 06:27 AM|kehand|LINK

    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

  • Re: php not loading all extensions iis7.5

    Nov 02, 2009 01:22 PM|don.raman|LINK

    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.

  • Re: php not loading all extensions iis7.5

    Nov 02, 2009 01:28 PM|don.raman|LINK

    You can also follow this blog here.

    Thanks,

    Don.