ZendPHPviaFastCGI Gives 500 Internal Server Error

WEBBY STUFF , Windows 2008 Server Add comments

Been having a fun time today trying to get Magento CMS working. The bizarre situation was that PHP would work fine under the default web site, but not under any other web site, which would result in a 500 Internal Server Error caused by the ZendPHPviaFastCGI PHP handler mapping. See screenshot below. I of course tried every possible solution without success, the cause turned out to be rather obscure.

 

fastcgi error

 

 

What was required to fix this was to manually add this attribute to the handler mapping in the applicationHost.config file, which you will find in C:\Windows\System32\inetsrv\config.

 

allowPathInfo="true"

 

PathInfo refers to the additional path information that may follow the file name and extension in a Uniform Resource Identifier (URI). For example, if you request the URI http://localhost/test.dll/myinfo, the PathInfo portion of that URI is /myinfo

This parameter does not seem to exist in the IIS Manager and is not even mentioned in the handler docs so I really do really not know why this is required or why it is not there by default and why you cannot add it via the GUI.

 

So the final entry for my ZendPHPviaFastCGI handler looked like this.

 

<add name="ZendPHPviaFastCGI" path="*.php" verb="*" modules="FastCgiModule"

scriptProcessor="C:\Program Files (x86)\Zend\ZendServer\bin\php-cgi.exe"

resourceType="Either" requireAccess="Script" allowPathInfo="true" />

 

Credit must go to my buddy Matt Gahan for working this one out.

3 responses to “ZendPHPviaFastCGI Gives 500 Internal Server Error”

  1. Stephen Says:
    This was very useful, I just ran into the same issue
  2. rami Says:
    This is not working man! i have installed &quot;ZendServer-php-5.2.10-4.0.5-Windows_x86&quot; on windows server 2008+ iis 7 with the stable package of magento: &quot;magento-1.4.2.0&quot; and its not working. keeps giving me that message.
  3. Mette Says:
    Thanks a lot, you saved my day!

Leave a Reply

Leave this field empty

Powered by Mango Blog. Design and Icons by N.Design Studio