none
PHP 5.3 w/ FastCGI on x64 Windows Server 2008 R2 IIS7 - MySql not supported?

    Question

  • Hi All,

    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,

    Nic

    Thursday, September 30, 2010 12:05 PM

All replies

  • To clarify - php_mysql.dll is present in the ext dir under c:\PHP
    Thursday, September 30, 2010 12:09 PM
  •  

    I should ask this another way - has anyone got this setup working successfully?

    Can anyone from MS comment on compatibility of Windows Server 2008 R2 x64 with PHP 5.3 and MySQL?

    Friday, October 01, 2010 11:04 AM
  • I have the same problem, except I cannot even get PHP to work using FastCGI. Did you get it to work using FastCGI or only by using an older ISAPI version?
    Monday, October 04, 2010 12:32 PM
  • Yes I got FastCGI with PHP 5.3 working using the guides I found online. Search on the error you get using phpinfo() that should get you some tips. Good luck.
    Monday, October 04, 2010 8:58 PM
  • I got this running by rebuilding the box with Server 2008 Standard then used the Web Applicafions Installer to install PHP 5.2.14. Seems to be working ok now, but no idea why 5.3 didn't work.
    Monday, October 04, 2010 11:00 PM
  • 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.

    -Brian


    This posting is provided "AS IS" with no warranties, and confers no rights. http://blogs.msdn.com/brian_swan
    Tuesday, October 05, 2010 11:26 PM