note 57432 deleted from install.windows.iis by cmb
| From: | cmb@php.net | Date: | Sat, 04 May 2019 13:22:57 +0000 |
| Subject: | note 57432 deleted from install.windows.iis by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-210922@lists.php.net to get a copy of this message | ||
Note Submitter: paul_noeldner at hotmail dot com
----
PROBLEM
PHP $DOCUMENT_ROOT was not set in IIS.
ANALYSIS
A Google search turned up a suggestion re using ISAPI instead of CGI.
SOLUTION
I did the fix per these suggested steps from Google search:
1 Downloaded PHP5 zip
2 Added ISAPI filter PHP5ISAPI.DLL named PHP
3 Changed document type .php to point at the PHP5ISAPI.DLL file instead of PHP.EXE.
RESULT
This worked - the php pages started picking up $DOCUMENT_ROOT as expected.
General suggestion: Don't waste time with CGI, use ISAPI.