I have installed Windows Server 2008 R2 on a 64bit system built as a Web Server and followed numerous PHP/FastCGI installation instructions from iis.net and other sites.
I have tried : setting the PATH and other env vars, enabling 32 bit applications in the App Pool, configured PHP.ini meticulously - even tried the x64 compiled PHP found on the web, yet and I am still unable to load the php_mysql.dll module. phpinfo() shows that PHP is running correctly however running PHP from the command line shows an error like "Unable to load dynamic lybrary 'C:\PHP\ext\php_mysql.dll - %1 is not a valid Win32 applicaiton" (this is recalled from memory so not verbatim) and I am unable to connect to either a local MySQL instance or a remote one.
Has anyone got WinSvr2008R2/IIS7/PHP/FastCGI/MySQL working and if so, how!? I am on the verge of switching to a different web server if not another OS entirely.
Thanks in advance,
I might be a bit late in responding to this thread (sorry), but this might be helpful in getting IIS/PHP configured properly: http://www.php.net/manual/en/install.windows.iis7.php.
In case you are interested, my blog is dedicated to PHP on Windows topics: http://blogs.msdn.com/b/brian_swan.
Hope that helps.
This posting is provided "AS IS" with no warranties, and confers no rights. http://blogs.msdn.com/brian_swan