1

Im running IIS 7.5 / PHP 7.0 CGI. If i open a non exist .php file in my browser, i get this error:

No input file specified.

IIS don't use the 404 Error Page for .php, like in .html files. I found some solutions, for example set doc_root in php.ini or comment out open_basedir .. but it won't help. I know it's a server issue, but not which.

The question is: Why i get "No input file specified." output, if i open a non exist .php file and not the IIS 404 Error Page?

  • Are you asking a question? This looks like a statement. – joeqwerty Nov 14 '17 at 18:21
  • Yes, its a question .. – Cloud Nov 14 '17 at 18:32
  • Well then what's the question? You've posted a statement. Perhaps you could rewrite your statement as a question and add some relevant details. – joeqwerty Nov 14 '17 at 18:33
  • The question is: Why i get "No input file specified." output, if i open a non exist .php file and not the IIS 404 Error Page? Btw .. i gave you all details what you need .. – Cloud Nov 14 '17 at 18:44
0

I found the solution: IIS 7 > Site > Handler Mappings > Edit handler > Request Restrictions > Mapping tab > Check "Invoke Handler only if request is mapped to:" > Select "File or folder"

  • 1
    I have same issue and It's already File or folder selected but still same error. – Riz Nov 30 '18 at 22:45
  • @Riz did you ever figure it out? :( – rgoliveira Sep 28 '19 at 16:14
  • If above mapping is correct, Please check document root path in php.ini file – bhuva nesh Feb 19 at 10:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.