cvs: php4 /win32 install.txt
| From: | Markus Fischer | Date: | Mon, 03 Jun 2002 11:11:41 +0000 |
| Subject: | cvs: php4 /win32 install.txt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12206@lists.php.net to get a copy of this message | ||
mfischer Mon Jun 3 07:11:41 2002 EDT
Modified files:
/php4/win32 install.txt
Log:
- Add note about IIS/CGI and cgi.force_redirect gotcha
Index: php4/win32/install.txt
diff -u php4/win32/install.txt:1.14 php4/win32/install.txt:1.15
--- php4/win32/install.txt:1.14 Thu May 30 06:24:52 2002
+++ php4/win32/install.txt Mon Jun 3 07:11:41 2002
@@ -434,6 +434,16 @@
add execute rights for I_USR_ to the directory that contains
php-cgi.exe
+ !NOTE!: Since 4.1.2, the php.ini setting cgi.force_redirect defaults to '1'
+ which effectively prevents the cgi from working within IIS. You need to set
+ up at least a minimal php.ini file with the following directive:
+
+ cgi.force_redirect = 0
+
+ If it doesn't work immidiately, make sure you have the php.ini file in the
+ right place (%SYSTEMROOT%\php.ini).
+
+
To use the ISAPI module, do the following:
If you don't want to perform HTTP Authentication using PHP,
@@ -616,7 +626,7 @@
Something went wrong when the server tried to run PHP. To get to see a
sensible error message, from the command line, change to the directory
- containing php-cgi.exe and run <literal>php-cgi.exe -i</literal>
+ containing php-cgi.exe and run "php-cgi.exe -i" (without quotes).
If php has any problems running, then a suitable error message will be displayed
which will give you a clue as to what needs to be done next.
If you get a screen full of html codes (the output of the phpinfo() function) then
@@ -701,6 +711,19 @@
try this tool.
+ I'm using IIS/CGI and everytime I try to access a php file I get
+ "Security Alert! The PHP CGI cannot be accessed directly."
+
+ Since 4.1.2, the php.ini setting cgi.force_redirect defaults to '1' which
+ effectively prevents the cgi from working within IIS. You need to set up at
+ least a minimal php.ini file with the following directive:
+
+ cgi.force_redirect = 0
+
+ If it doesn't work immidiately, make sure you have the php.ini file in the
+ right place (%SYSTEMROOT%\php.ini).
+
+
Other problems
If you are still stuck, someone on the PHP installation mailing list may be
able to help you. You should check out the archive first, in case
@@ -724,9 +747,13 @@
If you think you have found a bug in PHP, please report it. The
PHP developers probably don't know about it, and unless you
- report it, chances are it won't be fixed. You can report bugs
- using the bug-tracking system at http://bugs.php.net/
+ report it, chances are it won't be fixed.
+
+ 1) Read about Bugs-Dos-And-Donts
+ http://bugs.php.net/bugs-dos-and-donts.php
+
+ 2) If you think you've found a bug, read
+ http://bugs.php.net/bugs-dos-and-donts.php
- Read the Bugs-Dos-And-Donts at
- http://bugs.php.net/bugs-dos-and-donts.php
- _BEFORE_ submitting any bug reports!
+ 3) Feel welcome to file a report at
+ http://bugs.php.net/