dongyu1983 2019-03-01 16:51
浏览 125

IIS / PHP7.2 $ _SERVER ['Path']不匹配

To preface, I'm used to working with Linux/Nginx, but have to use IIS for this project.

I've set up php7.2, using fcgi on IIS, and I'm having issues where the Path over CLI isn't matching the Path over FCGI.

CLI

$_SERVER['Path'] => E:\app\oracle\product\12.1.0\client_1\BIN;E:\PHP7.2;E:\PHP7.2\ext;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Users\kkeiper1103\AppData\Local\Microsoft\WindowsApps;C:\Users\kkeiper1103\AppData\Local\Microsoft\WindowsApps;

FCGI

$_SERVER['Path'] => C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\PHP\v7.2;C:\Program Files\Microsoft\Web Platform Installer\;C:\Users\kkeiper1103\AppData\Local\Microsoft\WindowsApps;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps

Where do I set my Path in IIS so that it has the correct values?

  • 写回答

1条回答 默认 最新

  • dongre8505 2019-08-14 14:43
    关注

    FastCGI is correct?

    Configuration:

    Configuration

    评论

报告相同问题?