Attention: We are retiring the IIS.NET Community Blogs. Learn more >

How to: Install PHP 5 on IIS 7 with FastCGI

While working today I came across my dumped and lost php applications, I use to work on long ago. The moment I saw them I knew I couldn't resist to see them working again. These php code happen to be some of the earliest piece of code I have written. And soon enough it struck me that I had never installed PHP my Vista or on the Windows Server 2008 evaluation copy that I have. Well when better than now! Quickly, I stumbled upon a resource written by Mike and everything worked like a charm. However, I noticed that a lot of people have doubts in various changes that need to be made on both IIS and php.ini

Hence I thought this time instead of writing a step by step instruction guide and confuse all of you, I will show you guys of how it's to be done. Please pardon the voice. I have a few problems with my audio encoder. Having audio for Windows Server 2008 on VMWare Server was in itself a challenge! Check it out!





It's also available on YouTube at this location.

The parameters that need to be uncommented in php.ini are:

fastcgi.impersonate
cgi.fix_pathinfo
cgi.force_redirect --> once done change the value to 0 from 1
open_basedir --> put in the physical location of your php applications. (example in the video: c:\inetpub\wwwroot\phpapps)

Let me know if you need any more info on this. I think I might come up with a few more articles or videos on IIS with PHP.

Have Fun!

No Comments