PHP on Windows Home Server

2. October 2009 18:52 by rtur.net in Reviews  //  Tags: , ,   //   Comments (4)

404 As I have already wrote, you can use Web Platform Installer to turn home server into full-blown web server. WPI 2.0 comes with whole bunch of .NET and PHP applications for you to pick from. Not surprisingly, ASP.NET apps run out of the box just fine. But if you select PHP application from the list, you likely to run into situation when installer goes through and reports success, but application itself throws HTTP 404 not found error. The good news is that installer did not lie and PHP/MySQL/web application all installed properly, it just missed one small step and did not configure .PHP extension with IIS. Fortunately, it is pretty easy to fix.

  • Go to IIS manager and navigate to PHP app you just installed
  • Right-click to get to properties and then click "Configuration" on virtual directory tab
  • Click "add" and tell IIS to use Fast CGI DLL when PHP page requested:

Configuration

Lastly, go to Documents tab and add Index.php and move it to the top of the list.

Save, close and if you navigate to PHP application in the browser, all should work fine. It is mildly annoying, but still the easiest way to get up and running PHP on Windows Home Server with IIS.

Comments (4) -

Emanuel
Emanuel
10/3/2009 5:45:14 AM #

Great article! Thanks a lot!

MGD King
MGD King
11/13/2009 9:33:12 AM #

I think that Microsoft is definitely on to something with their Web Platform Installer! I used it to install PHP on a Win2K3 Standard Server and it ran as expected. I didn't have the issues that you mentioned and I didn't have to modify any of my settings in IIS. I guess I'm lucky. :)

ernest
ernest
11/22/2009 6:24:13 PM #

unfortunately didnt work for me. went to IIS mgr, right clicked on the wordpress under websites, properties, configuration. when i tried to add the fastcgi.dll for .php, it says this page is already exists, so i just edited on the the existing .php and redirected it to the fastcgi.dll. still no luck though. still getting teh 403 error. thanks the suggestion though

bambang tri
bambang tri
2/7/2010 6:26:02 AM #

Didn't work for me either, but I'm getting the 501 error. Still trying to google the way out.

Comments are closed

Recent Comments

Comment RSS