I changed CGI version to ISAPI version, and the problem was solved, although I do not know why.
Main Topics
Browse All TopicsI install PHP on Windows Server 2003.
Everything works fine with pages under the root dir (d:\inetpub).
But I get the error "non input file specified error" when trying to execute PHP in a virtual directory.
Somebody made the remark to change from CGI to ISAPI version? Is this the solution? ISAPI is still considered as risky, as mentionned in the install instructions.
Thx in advance, Peter.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I think that the CGI version probably requires a correct path of something like "%1" rather than %1 sort of thing.
Who knows.
ISAPI is a better solution on Windows anyway.
If this is for a production environment, take a look at the Zend WinEnabler (http://www.zend.com). It offers *ix stability on Windows for PHP. Well worth it!
Wow. What a long time ago and how things have changed.
Now, IIS7+FastCGI+PHP using FastCGI is the way to go.
Very reliable. Officially supported by Microsoft (for those that must have that).
All in all, a much better setup than ISAPI or standard CGI.
And with Microsoft's Web Platform Installer being able to install FastCGI _AND_ PHP all from IIS, it really couldn't be easier for Windows users.
Business Accounts
Answer for Membership
by: RQuadlingPosted on 2004-05-10 at 14:23:40ID: 11035312
The ISAPI version allows persistent database connections which is a good thing if your app has a LOT of DB scripts.
The CGI version does have the constant loading/unloading overhead to deal with, but is a separate thread.
Personally, IIS is the issue. Drop IIS and use Apache or Sambar Server. Both are free. I use Sambar (and have done for MANY years). The only stability issue is with poorly written PHP code. And only during testing. Once testing is complete, I use PHP and Delphi based ISAPI dlls quite happily.
Our customer support team can install Sambar Server, PHP and our webapp in about 10 minutes. Getting IIS up and going is a real pain, especially when they have someone on site who has played with it and not sure what they've done.
To answer your question though, I suspect that the virtual directory needs to be told that php files are to be handled by the PHP executable or ISAPI filter.
Richard.