Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.1k views
in Technique[技术] by (71.8m points)

PHP pages on IIS say No input file specified

I'm trying to setup PHP on IIS on windows 10 pro workstation.

I have php 8.0.1 installed:

PS C:inetpubwwwroot> php --version
PHP 8.0.1 (cli) (built: Jan  5 2021 23:43:33) ( NTS Visual C++ 2019 x64 )
Copyright (c) The PHP Group
Zend Engine v4.0.1, Copyright (c) Zend Technologies

In php.ini I tried setting both of the following (one at a time) and restarting IIS:

doc_root = "C:inetpubwwwroot"
doc_root = 

In IIS module mappings I have a module setup with:

Request path: '*.php'
Module: FastCgiModule
Executable Path: 'C:phpphp-cgi.exe'

I have verified that file is there on the filesystem.

And the result is the same. I see No input file specified. anytime I bring up a php page, including php.info.

How can I correct this?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...