Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I just installed PHP 5.4.0 on Windows 2008 using the Web Platform Installer, but I still get 404s anytime I try to request a php. Anyone know where Microsoft has hidden the install/setup documentation for their build of PHP 5.4.0?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Microsoft's Web Platform Installer installs PHP 5.4.0 with an invalid configuration. IIS 7.5's Manager (and probably all older versions too) can't handle Handler Mappings that point to .exe files that have spaces in the path unless the path is surrounded by ""

So to fix it, you just have to go into Handler Mappings in Internet Information Services (IIS) Manager, pick Handler Mappings, then pick PHP54_via_FastCGI then pick Edit... and then surround the entry that Web Platform Installer made for "Executatble (optional):" with "", ie: "C:\Program Files (x86)\PHP\v5.4\php-cgi.exe"

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.