Once you've followed these instructions to install PHP hosted on IIS7 using FastCGI (there's also a video by Scott Hanselman), you'll probably want to install MySQL and make it work with PHP. However, with your php.ini in its current state you'll likely get an error message when you start a MySQL-based app, such as Wordpress:

Your PHP installation appears to be missing the MySQL which is required for WordPress.

There's a lot of information out there to fix this on Windows, and much advice involves copying and grabbing dlls and stuff. Much of it is superfluous, and it boils down to this with your current configuration:

  • Edit your php.ini (in C:\PHP\ or wherever you installed php), and uncomment the following line:
    **hint: remove the semicolon ;)
  • Change this line:
    **extension_dir = "./"
    **to this:
    extension_dir = "C:\php\ext"
  • Save php.ini and restart the web server in IIS Manager
  • That's all

Hope it helps.

t-pantz: Thanks this fixed my issue. None of the other posts i read stated anything about the extension_dir change. THANKS!

Posted: 04 June 2008

comments powered by Disqus