No input file specified.

I have this problem (No input file specified).....checked what you had said but the problem still exists. I only get this with PHP, ASP, ASPX, and normal HTML all work fine. what else might this problem be?? I have installed, like you did according to the articles but have this problem only with PHP....HELP

Average rating
(0 votes)
.netECOMMECRCE - Components for ASP.NET
Brashquido's picture

Location: Melbourne, Australia

Joined: Sep 2003

Send PM

Brashquido said:

Hi Gary,

Basically all PHP is telling us here with this error is that it cannot find the PHP script you asked it to process. This can be few things.

First check your NTFS permissions and ensure you IIS user account has read access to the PHP scripts you are trying to run. The second thing to check is your php.ini file. In particular check the doc_root and open_basedir directives.

----------------
Dominic Ryan
4 x Microsoft IIS MVP, MCSE, MCSA
IIS Aid owner/webmaster

scott90210's picture

Location: Wadsworth, Oh

Joined: Sep 2008

Send PM

scott90210 said:

Hi Brash,

I am seeing the same issue. I have checked and have my doc_root set, although I do have a question. The ini file comments state that it needs to be the root folder. My PHP instance is installed in my H:/PHP drive, however my website is H:/PHPWebsite/[directory]/[directory] path, what should the value be? I would also mention that the site worked fine...until I rebooted my hosting maching. That's when I started seeing the message.

Brashquido's picture

Location: Melbourne, Australia

Joined: Sep 2003

Send PM

Brashquido said:

It is probably best to comment out the doc_root value when using PHP with IIS. That way PHP will use the website root as the doc_root value.

If you have PHP installed in a different directory to you websites, then you'll need to commment out or clear the open_basedir value.

----------------
Dominic Ryan
4 x Microsoft IIS MVP, MCSE, MCSA
IIS Aid owner/webmaster

Anonymous's picture

Location: Kolkata

Anonymous said:

I had been fighting php 5.2.6 on XP SP2 off and on for a couple of weeks. It turns out that IIS was configured correctly with the php ISAPI filter and the application mapping setup correctly. The issue was with php's configuration. After commenting out doc_root and open_basedir and setting cgi.force_redirect = 0 php started parsing scripts. Thanks for the help.