When you host your PHP website on Windows Server IIS, you may receive an “No input file specified” error message, when a HTTP request is made to non-existing .php files. When this happens you probably have no Request Restrictions configured in IIS’ PHP handler settings. Here is how to resolve the
no input file specified error.
In order to fix the no input file specified PHP error, you have to configure Request Restrictions in IIS for the
In IIS Manager, open up the Handler Mappings under your server node. Scroll down to Name PHP, or Path
*.php, and double click to open up its properties. See the image below.
Click Request Restrictions to get the following screen where you can configure and set handler mappings:
Protip: want to learn how to properly configure PHP on IIS?
My name is Jan. I am not a hacker, coder, developer or guru. I am merely a systems administrator, doing my daily thing at Vevida.
If you feel a post has helped solve your problem, or has saved you time, please consider making a donation. You can transfer a direct donation through Paypal or via bank wire-transfer IBAN: NL31 ABNA 0432217258 (Jan Reilink). Thanks!