No input file specified
-
I’m running version 4.22 of WP, and had installed via the IIS Web Platform Installer.
The site works fine, except after putting in some plugins to make sure you login before viewing the site, we will get a 404 error and/or “No input file specified” on the FIRST visit to the site. If you hit ‘refresh’ then everything works normally. I think this means that everything is configured correctly (or it wouldn’t work at all), but the error is completely reproducible.
So, I’ve done hours of tracking down various possible causes, but none of the apparent culprits seem to have fixed it:
. I’ve found at least 3 ‘fixes’ but none of these work:
; commented out doc_root per:
; https://us2.php.net/install.windows
; doc_root =; as well as changing this:
; **You CAN safely turn this off for IIS, in fact, you MUST.** ; https://php.net/cgi.force-redirect
cgi.force_redirect = 0I restarted the World Wide Web publishing service from both IIS 7 and from the Services snapin, but we still get the error.
Third fix; I also found this note, but it did not work!
Another place to check is the Request Restrictions for the FastCGI Module Handler Mapping in IIS. You must check the box next to “Invoke handler only if request is mapped to:” and toggle on the “file” option. By default, when you setup the FastCGI Module to run as PHP, this option defaults to files and folders and so IIS thinks .php is a folder and tries to find a web.config file, which it doesn’t find and then spits out the hated “No input specified” message.
From https://www.iis-aid.com/articles/trouble_shooting/no_input_file_specified?page=1
Anyone have any ideas?
== John ==
- The topic ‘No input file specified’ is closed to new replies.