kdallas
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: No input file specifiedI have a simple solution that worked for my configuration.
First of all to emprear — you are wrong… it does NOT always have to relate to the CGI installation.
My configuration is… IIS6, ASP.NET, and PHP5 running as an ISAPI extension (.dll)
I had a site running on standard port 80 in the usual wwwroot folder, and PHP worked fine. I created a second site using port 8088 and PHP pages always produced “input file not specified”. This was occuring on computers on my LAN. After trying a lot of different suggestions and clearing the cache out etc… nothing really changed except I got the site running on localhost to produce a code 404 error instead of that unhelpful “file not…” message.
If you’re thinking that I failed to install the php extension for this new site, that would be a good avenue to take, but in this case I’ve installed PHP in the default site properties. Note that one usually needs to add the .php extension to the document cache as well…
Alright.. so if you’ve all got it setup as it should be, (as I did.). You should be able to fix the problem with my suggestion below. Note that this is based on some comments above, but know that it is not necessary to run mods in realtime… and generally not best practise.
Go into the php.ini file where your php installation resides (no this is not a Linux thing!).
Find the line “doc_root = “
Comment it out. (or delete the line).
It is that simple. Most people point the root to wwwroot using an absolute path, which is fine for most configs. However it is redundant for ISAPI installs. It does sometimes need to be used for CGI installs, but this is one of the big CGI limitations, (apart from poor performance), and why everyone should switch to ISAPI.I hope this helps some people. I don’t expect it will help everyone as some people have some unusual setups.