Page 1 of 1

'No Input File Specified' Error Showing up

Posted: Thu Mar 13, 2008 1:51 pm
by DarkNemesis618
My site is hosted with GoDaddy, all of a sudden yesterday, many of my pages aren't working and I'm getting a "No Input File Specified". From what I've read, it seems to be a configuration, but I haven't touched any of my config files and it was working before.

An example of what I get can be found at http://blog.darkernemesis.com/archives/ ... -to-Japan/

I've been trying things all morning and am pretty much just stuck right now, any help would be appreciated. :banghead:

Here are my php.ini and .htaccess files. Both are stored in my root directory.

php.ini

Code: Select all

register_globals = off
allow_url_fopen = off
 
expose_php = Off
max_input_time = 60
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
date.timezone = "America/New_York"
.htaccess

Code: Select all

<files page> 
ForceType application/x-httpd-php 
</files>

Re: 'No Input File Specified' Error Showing up

Posted: Mon Mar 17, 2008 12:48 am
by philfreo
As of the last few days, I've been having the same issue with my GoDaddy account. Please let me know if you figure out a workaround.

Re: 'No Input File Specified' Error Showing up

Posted: Mon Mar 17, 2008 12:58 am
by DarkNemesis618
After painstakingly trying to solve this, I ended up solving the problem. Try adding the following line to your php.ini file

cgi.fix_pathinfo = 1

if that doesn't work, a GoDaddy tech said to try renaming your php.ini file to php5.ini ...worth a try.

also, if you use the explode function to parse your URLs, try

Code: Select all

$_SERVER['REQUEST_URI']
other options didn't work, but REQUEST_URI did.

Let me know if that helps.

Re: 'No Input File Specified' Error Showing up

Posted: Mon Mar 17, 2008 1:20 am
by philfreo
Thanks a ton, this fixed the problem. I had actually found something about "cgi.fix_pathinfo = 1" a few minutes ago but naming the file php5.ini (and putting it in my web root) is what solved it.

Thanks!

Re: 'No Input File Specified' Error Showing up

Posted: Wed Jul 09, 2008 11:59 am
by davidbessler
I had the same problem on my godaddy account. This solution: cgi.fix_pathinfo = 1 fixed the problem. I have notified godaddy tech support.