"No input file specified" problem solutions

Permalink 3 users found helpful
Hei all of you.

When I turned pretty url on, I had a problem that I could see only a blank page with the text "No input file spesified".

After fighting with my problem I found several solutions. Here is some tips that mught help you:

Things to check (with phpinfo(); ):

1. "Scan this dir for additional .ini files"
2. cgi.fix_pathinfo
3. Options -MultiViews


1. The "Scan this dir..." is a folder that enables you to give local php settings via your own php.ini file. Place your php.ini file in the folder and it should change the locals at your domain.

2. For me working with a server that used php 5 in a cgi I noticed that the cgi.fix_pathinfo should be set to zero (cgi.fix_pathinfo = 0). This helped me, but I recomedn trying to change the current value.

3. Second is to write to the top of .htaccess file that contains the RewriteRule:
Options -MultiViews

If that dosen't help, write it to the custom php.ini (1)

"Turn off MultiViews. It seems when MultiViews is enabled there is confusion between MultiViews and the RewriteRules. So if you go to /user there will be no problem, MultiViews will translate it to /user.php. However when you go to /user/blah/login/blah or one of the other more complex clean URLs it gets confused." - pligg.com (2)

References:

(1)http://www.magentocommerce.com/wiki/groups/227/error/no_input_file_...

(2)http://forums.pligg.com/installation-upgrade-help/9711-solution-no-...

http://jenseng.com/archives/000035.html...

sebmel
 
jordanlev replied on at Permalink Reply
jordanlev
Just want to pipe in and say that option #2 solved my problem -- thank you so much for posting this!

For future reference if anyone else is having this problem -- I couldn't access the php.ini file on my shared hosting server, so I just created my own php.ini file in the root directory of my site and it picked it up (I just put in the one line "cgi.fix_pathinfo = 0", and it added this to all of the other settings from the server's default php.ini file).

-Jordan Lev
tobyme replied on at Permalink Reply
option 2 fixed my problem on Kualo servers although now I cant see the dashboard top panel when logged in. Weird - but will solve no doubt.
sebmel replied on at Permalink Reply
sebmel
Nice to hear that it has helped. It is extremely annoying when this happens. Customers can only tell you that "I CAN'T SEE THE WEBSITE" and the only thing you can do is cry :D
gewald replied on at Permalink Reply
gewald
This fix worked on Siteground, but I'm still having problems with Network Solutions. I've tried option 2 (which worked on Siteground) with no help. I put it in the top level of the site directory. I wasn't sure if your first idea was to create a directory called "Scan this dir for...", or to search for php.ini somewhere in my directories.

On the third point the default code to add to the htaccess file doesn't reference Options-MultiViews. Here's the code from my site (slightly modified with a fix that worked on GoDaddy hosting).

# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule ^(.*)$ /index.php/$1 [QSA,L]
</IfModule>
# -- concrete5 urls end --
clocktower replied on at Permalink Reply
clocktower
These tips absolutely worked for me on a Godaddy grid hosting account.

I had to rename the php.ini file to "php5.ini", and then add Options -MultiViews and set cgi.fix_pathinfo = 1
davidprotean replied on at Permalink Reply
Hi, I tried a lot of these convoluted and confusing fixes and hacks to try and solve my "No input file selected" error.

My issue occurred when I moved hosting to a new provider. I had three sites running on shared hosting, and then moved them to a VPS. One moved fine and just worked, the other two had this issue.

After trying lots of these fixes, my friendly account manager at Bytehouse hosting solved the issue. He found that the site "must run PHP in apache mode."

So one small change in Plesk and the site was fixed:
>>websites and domains>>show advanced operations>>website scripting and security>>PHP support (run as ) "Apache Module"

Hope that helps someone else too.
osnoz replied on at Permalink Reply
I've been getting the dreaded "no input file specified", though only on cms pages. The site itself works fine I just can't login.

Changing both...
Options -MultiViews 
cgi.fix_pathinfo


had no effect. My htaccess rewrite rule is...
RewriteRule . index.php [L]


Any ideas greatly appreciated. (BTW site is Linux hosted and nothing to do with goDaddy)