Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIS and PHP - No Input file found

Status
Not open for further replies.

jez

Programmer
Apr 24, 2001
370
VN
Hi,

Can anyone suggest any way of resolving the error "No Input file specified".

I have followed the instructions on installing PHP as an Isapi filter on IIS. I have modified the php.ini to show the doc_root as the IIS doc root, also commented it out completely as suggested elsewhere and ensured that PHP is in the environment path, yet i still get the following error whenever i call a php file.

Could it be that the site i am trying it on is in a virual folder? If so how can i resolve this.

I have to say that the error itself is fairly useless. Some indication of which file was not able to find an input file or which file failed to specify an input file would at least be a start.

Thanks

Jez
 
you have not told us where you are getting the error. and what is giving you the error: IIS or php?
is there anything in the web server's error logs or in the windows event log that might help?
are you using IIS 5 or IIS 6?
 
Sorry, I should have been clearer.

Firstly there is nothing in the windows event log, and this error is shown when i try and access a php file in a virtual directory. The php file has echo phpinfo(); in it, nothing else.

Now in the server error log i see
08:26:56 127.0.0.1 GET /webs/index.php 404

which is the path to the file in the virtual folder.

In answer to the question about it being a PHP error or IIS, i do not know as the entire errror is "No Input file specified", so i am guessing it might be IIS.

There does seem to be issues with PHP in virtual directories , as i have manged to get this file to run from the standard folder that is default for IIS.

Thanks
Jez
 
I have a similar issue

ENVIRONMENT:
Windows 2003 Server
IIS 6.0
PHP 4.3.11
MySLQ 4.1

I have been sucessfully running multipal PHP sites using the php4isapi.dll On one website I have tried to run FastCGI isapi_fcgi.dll and I too get the
"No input file specified"

I do not have any events in the logs either and when I return back to the php4iaspi.dll file the site works again.

I want to use FastCGI as it is supposed to be 1000% faster than plain isapi. I have a couple of large PHP sites that load very slowly and this was one of the suggesions offered me along with HTML compression which I have enabled.

Any thoughts?
Thanks
 
Sorry for the delay in getting back. This has been a really busy time. I eventually ended up upgrading my PHP to 5.1.6 and I no longer have the issue.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top