-1

im running IIS 7.5 / PHP 7.0 CGI. If i open a non exist .php file i get this error:

No input file specified.

IIS don't use the 404 Error Page, 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.

1
  • Sounds more like a server configuration issue than a coding issue. Try asking over at Server Fault instead, or just Google on "set custom 404 page on IIS 7.5" Commented Nov 14, 2017 at 16:45

1 Answer 1

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"

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.