PHP
--
Questions
--
Followers
Top Experts
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.
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
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.
If you set it to be doc_root php.ini = "[Drive-Letter]:\YourWebPa
(Yes and ofcourse restartt IIS - that are easiest done with cmd line -> iisreset /RESTART Β )
Br
Β -JD






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Β doc_root IN THE php.ini file and set it to be doc_root = ... IN THE php.ini file works a bit better..
:P
And also: read documentation regarding security..
Br
Β -JD

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
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.
PHP
--
Questions
--
Followers
Top Experts
PHP is a widely-used server-side scripting language especially suited for web development, powering tens of millions of sites from Facebook to personal WordPress blogs. PHP is often paired with the MySQL relational database, but includes support for most other mainstream databases. By utilizing different Server APIs, PHP can work on many different web servers as a server-side scripting language.