No input file specified
-
Anyone know what “No input file specified” means, when I load wp-login.php? It just started doing that, all of the sudden, although I can edit post just fine thru their individual links.
Is it possible to “downgrade” WP from the latest nightly build to something more stable, by following the same steps as to upgrade?
-
I had the “No input file specified” problem today. This was caused by wiping out the mod_rewrite rules in .htaccess. Adding them back fixed the problem right away.
Make sure “RewriteEngine On” and the associated rules are listed in .htaccess. If not, go to your wordpress Admin screen, click Options, click Permalinks and scroll all the way to the bottom and paste what is in the textbox back into your .htaccess file.
LanceI ran in that problem today, here is my setup: Windows Server 2003, PHP 4.3.9, MySQL 3.23.49 and IIS.
I had coppermine (image gallery) running fine so i copied my wordpress folder under my coppermine folder and wp seemed to run fine. Then I realized my original wp directore didn’t have php enable on it so I turned that on and it but still no sucess, I ended erasing it and copying the directory under coppermine. I did some tweaking in between so I’m not sure how that all worked out.
One thing I noticed is that permissions on the wp directory are different now.
Anyway, if I could have done it another way I would have gone the linux/apache way.
maybe someone can find a real answer to that problem.FYI – I am running W2K3, IIS6 and PHP5. I ran into the error, and commented out the “doc_root” parameter in my php.ini, stopped/restarted the web server, and things work great!
Its file permission errors guys. You have to allow ISUR_yourmachine to have access to the folder. Set the permissions right and this will take care of that error.
What do you mean by a file error permission?>
Actually, it might be user error (at least in my case).
After much trial and tribulation, I got install.php to run and it walked me through all of the steps. When I clicked the login link at the end I got the “no input file specified” error.
So I tried changing my file permissions, but that had no effect. I deleted the tables from my database and ran install.php again, and this time when it asked I specified the proper installation point of WordPress.
The first time it specified for me, but was wrong. I had trusted it and it used my website, https://wwww.xcursionists.com. However, my blogs are actually at a subdirectory, https://www.xcursionists.com/blogs. Once I specified that I was able to login successfully.
I went back and reset the permissions that I had changed and then tried it again, and it still worked, so it wasn’t the permissions. Could be that WP is looking in the wrong place for the files.
I’ve tried almost everything above except changing the php.ini cause i have no access. I still have the same problem…
When i try to login to wordpress i get a white page that says “No input file specified”. I noticed that if i go back two times in my webreader to wordpress index page and refresh that page then i can see the site admin. So then i am logged in to the system and i have to do the same thing when i logout.
However, i dont want to keep up like this, so is there a fix for this problem??
Help appreciated
/Martin
I had the “input file not specified” problem for all the internal links on my site until I created a .htaccess file in the wp directory with the content specified at the bottom of the admin/options/permalinks page. Voila! all is well.
Hmm there is no content specified at the bottom of the admin/options/permalinks page. Its only the two fields where one can fill in the Structure and the Category base and below that theres nothing on my page?!?
First Sorry by me english.
“input file not specified” is 100% asociated with PHP CGI installation.is related to 404 Not Found Status. You can fix the problem in Apache .htaccess file. use the next code
### fix para “no input file especified”
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteRule ^.+\.php$ /error_/thisfiledontexists
###
Of course you need “mod_rewrite” enabled, in the sample “thisfiledontexist”, in fact, must be a inexistent file.
Also you can customize the error page :
ErrorDocument 404 /not_found.phpI 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.
the No input file specified error can also happen due to file permissions. I had to reupload my WP files and change the file permissions during upload.
— Mike
This “no input file” thread seems to be well spidered, but has a confusing mix of problem and solution statements.
In particular, one should distinguish between Win, Linux, Apache, and IIS, and CGI vs ISAPI scenarios — which could have different causes.
My variant was Win 2000, PHP5, IIS5, ISAPI. First I verified that PHP was working from the command line:
php phpinfo.php
If not, you have a PHP issue not related to the webserver you’ve selected. Fix that first. But I suspect if you are seeing “no input file”, you’ve already got PHP mostly working.
Then I had to change the PHP.INI setting for
cgi_force_redirect = 0
as noted here https://us2.php.net/install.windows.
Unlike some of the postings here, I did not have a need to reboot the server, so long as IIS was restarted from the Services in Control Panel (the whole service, not just the site involved), nor did the doc_root setting, which was null, make any difference. You mileage could vary. Permissions problems could also be a cause.
Beware of caching when testing solutions.
Lastly, I am reminded how much time is saved by an all-in-one install as provided by https://devside.net if you have enough permissions to go that route. For Windows users, it’s a big timesaver.
Good luck getting around this nuisance.
–Mark Underwood
- The topic ‘No input file specified’ is closed to new replies.