No REQUEST_URI in PHP under IIS 8.5 FastCGI [Answered]RSS

1 reply

Last post Jan 30, 2015 12:38 AM by Pengzhen Song - MSFT

  • No REQUEST_URI in PHP under IIS 8.5 FastCGI

    Jan 29, 2015 10:07 AM|tobym|LINK

    Hi there,

      I'm trying to evaluate a PHP setup under IIS 8.5 (which seems to be all that's available on Windows 8.1), it's...tricky.

      It seems like it's almost there, but I can't get anything from $_SERVER['REQUEST_URI'] (apart from by hacking in PHP), it's always empty. I've seen this, in relation to IIS 7/7.5:

    http://support.microsoft.com/kb/2277918

    but I don't know how I could actually get my hands on that hotfix (or if it would work on 8.5)?

      Can anyone help?

      Thanks,

    Toby

    fastcgi php

  • Re: No REQUEST_URI in PHP under IIS 8.5 FastCGI

    Jan 30, 2015 12:38 AM|Pengzhen Song - MSFT|LINK

    Hi,

    You can try this fixing

    reg add HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\w3svc\Parameters /v FastCGIUtf8ServerVariables /t REG_MULTI_SZ /d REQUEST_URI\0PATH_INFO

    For more information, please refer to the document:

    http://support.microsoft.com/kb/2277918

    fastcgi php

    We are trying to better understand customer views on social support experience. Click HERE to participate the survey.
    Thanks!