« Previous Next »

Answered Thread: PHP won't run on IIS7 after Vista SP1 upgrade

Last post 12-27-2008 11:07 PM by Datagnostics. 12 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (13 items)

Sort Posts:

  • 12-23-2008, 2:30 AM

    PHP won't run on IIS7 after Vista SP1 upgrade

    I just upgraded Vista with Service Pack 1. Now IIS7 won't run PHP, though it had been doing so nicely before.

     First I had to re-start WAS and W3SVC (via the comand line). Now HTML and legacy ASP pages run just fine, but when I run good ol' info.php I get:

     

    Error Summary

    HTTP Error 500.0 - Internal Server Error

    <handler> scriptProcessor could not be found in <fastCGI> application configuration

    Detailed Error Information
    Moduleiisfcgi
    NotificationExecuteRequestHandler
    HandlerPHP-iisfcgi
    Error Code0x80070585
    Requested URLhttp://localhost:80/info.php
    Physical PathC:\inetpub\wwwroot\info.php
    Logon MethodAnonymous
    Logon UserAnonymous
    Failed Request Tracing Log DirectoryC:\inetpub\logs\FailedReqLogFiles

     The Log File says:

    Failure Reason:STATUS_CODE
    Final Status: 500
    Time Taken:0 msec

    IIS Trace Detail Highlights

    No.
    EventNameDetailsTime
    32.
    n
    n
    r
    SET_RESPONSE_ERROR_DESCRIPTION
    Warning
    ErrorDescription="<handler> scriptProcessor could not be found in <fastCGI> application configuration"07:27:27.243
    33.
    n
    n
    r
    MODULE_SET_RESPONSE_ERROR_STATUS
    Warning
    ModuleName="iisfcgi", Notification="EXECUTE_REQUEST_HANDLER", HttpStatus="500", HttpReason="Internal Server Error", HttpSubStatus="0", ErrorCode="Invalid index. (0x80070585)", ConfigExceptionInfo=""

     

    Tell me exactly where I go to fix what, please. It's late and I'm baffled.

  • 12-23-2008, 10:01 AM In reply to

    Re: PHP won't run on IIS7 after Vista SP1 upgrade

    Check this

    Regards,
    MA Khan
    http://www.iisworkstation.com

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 12-23-2008, 2:52 PM In reply to

    Re: PHP won't run on IIS7 after Vista SP1 upgrade

    I did not find that explanation sufficiently explanatory.

    I open the IIS Manager. In the Handler Mappings, I have "PHP-iisfcgi" with:

    -------------------

    Request Path: *.PHP

    Module: iisfcgi

    Executable: C:\PHP\php-cgi.exe

    -------------------

    In Modules, I have "iisfcgi", with path %windir%\System32\inetsrv\iisfcgi.dll. I can see that this file exists.

     What else should I check?

  • 12-26-2008, 1:46 AM In reply to

    Re: PHP won't run on IIS7 after Vista SP1 upgrade

    Hi,

    Would you confirm that whether the CGI feature on your vista sp1 is enabled ? We could go  to Control Panel -> Programs and Features -> Turn Windows features on or off ,make sure the” CGI” is checked. This enables both the CGI and FastCGI services.

    For more information, please refer to:

    Using FastCGI to Host PHP Applications on IIS 7.0
    http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-70/

    Leo Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • 12-26-2008, 10:32 AM In reply to

    Re: PHP won't run on IIS7 after Vista SP1 upgrade

    CGI was definitely already enabled. I'm looking through the instructions in that link now; possibly I need to try uninstalling PHP, then re-installing. *weeps*

  • 12-26-2008, 1:15 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Answered Re: PHP won't run on IIS7 after Vista SP1 upgrade

    You should not need to uninstall/reinstall php - you will definitely need to uninstall the tech-preview bits of fastcgi for IIS7 you were running with and install the release bits present in vista sp1 (by uninstalling and reinstalling the CGI feature possibly) - you will then need to re-register handler mappings and fastcgi section registration for php.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 12-26-2008, 1:28 PM In reply to

    Re: PHP won't run on IIS7 after Vista SP1 upgrade

    anilr:
    you will definitely need to uninstall the tech-preview bits of fastcgi for IIS7 you were running with and install the release bits present in vista sp1

     Anil one question... how did you establish he was using a tech-preview version??

    Regards,
    MA Khan
    http://www.iisworkstation.com

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 12-26-2008, 2:15 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: PHP won't run on IIS7 after Vista SP1 upgrade

    There was no release version on vista rtm - so, if he was using fastcgi on vista rtm, he must have been using tech preview bits.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 12-27-2008, 2:49 PM In reply to

    Re: PHP won't run on IIS7 after Vista SP1 upgrade

    Anil is definitely right -- I had been using the FastCGI tech preview.

    I now:

    - removed FastCGI handler mapping
    - removed CGI handler mapping
    - under ISAPI/CGI restrictions, removed PHP CGI

    and then went to re-install the FastCGI handler mapping (using these instructions). I also re-added PHP CGI under the ISAPI/CGI restrictions.

    Now *nothing* will run, even HTML pages. The error message ( I see on Event Viewer takes me to this, so I looked in applicationhost.config and saw that the XML contained both fastCGI and fastCgi-related code. I manually took out the fastCGI stuff, but I'm getting the same Event Viewer error, viz:

    Log Name:      Application
    Source:        Microsoft-Windows-IIS-W3SVC-WP
    Date:          12/27/2008 2:36:02 PM
    Event ID:      2293
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      Galadriel
    Description:
    The Module name FastCgiModule path C:\Windows\System32\inetsrv\iisfcgi.dll returned an error from registration.  The data is the error.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-IIS-W3SVC-WP" Guid="{670080D9-742A-4187-8D16-41143D1290BD}" EventSourceName="W3SVC-WP" />
        <EventID Qualifiers="49152">2293</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2008-12-27T19:36:02.000Z" />
        <EventRecordID>18226</EventRecordID>
        <Correlation />
        <Execution ProcessID="0" ThreadID="0" />
        <Channel>Application</Channel>
        <Computer>Galadriel</Computer>
        <Security />
      </System>
      <EventData>
        <Data Name="ModuleDll">FastCgiModule</Data>
        <Data Name="Path">C:\Windows\System32\inetsrv\iisfcgi.dll</Data>
        <Binary>05400080</Binary>
      </EventData>
    </Event>

    Now what?

  • 12-27-2008, 4:52 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: PHP won't run on IIS7 after Vista SP1 upgrade

    This error is because you have the fastcgi module registered twice in globalModules/modules sections - once from the tech-preview bits install and one from the vista sp1 CGI component install - you need to remove one of those.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 12-27-2008, 5:17 PM In reply to

    Re: PHP won't run on IIS7 after Vista SP1 upgrade

    No, I removed the fastCGI one, here's what my globalmodules/modules section of applicationhost.config looks like now:

          <modules>
                <add name="HttpCacheModule" />
                <add name="StaticCompressionModule" />
                <add name="DefaultDocumentModule" />
                <add name="DirectoryListingModule" />
                <add name="ProtocolSupportModule" />
                <add name="ServerSideIncludeModule" />
                <add name="StaticFileModule" />
                <add name="AnonymousAuthenticationModule" />
                <add name="RequestFilteringModule" />
                <add name="CustomErrorModule" />
                <add name="IsapiModule" />
                <add name="HttpLoggingModule" />
                <add name="RequestMonitorModule" />
                <add name="iisfcgi" />
                <add name="FailedRequestsTracingModule" />
                <add name="CgiModule" lockItem="true" />
                <add name="FastCgiModule" lockItem="true" />
            </modules>

    Is it "lockItem" that's causing trouble?

  • 12-27-2008, 8:47 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: PHP won't run on IIS7 after Vista SP1 upgrade

    The items with name="iisfcgi" and name="FastCgiModule" point to the same dll - look in the globalModules section - the first is from the tech preview and the latter is from vista sp1 CGI component - remove the first one from both globalModules and modules sections.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 12-27-2008, 11:07 PM In reply to

    Re: PHP won't run on IIS7 after Vista SP1 upgrade

    YES!! Wiktory!

    Thank you so, so much.

Page 1 of 1 (13 items)
Microsoft Communities