philip          Mon Jan 20 12:48:05 2003 EDT

  Modified files:              
    /phpdoc/en/faq      installation.xml 
  Log:
  Implement solution to #16111 into a couple faqs.
  
  
Index: phpdoc/en/faq/installation.xml
diff -u phpdoc/en/faq/installation.xml:1.17 phpdoc/en/faq/installation.xml:1.18
--- phpdoc/en/faq/installation.xml:1.17 Mon Jun 10 06:22:39 2002
+++ phpdoc/en/faq/installation.xml      Mon Jan 20 12:48:05 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.17 $ -->
+<!-- $Revision: 1.18 $ -->
  <chapter id="faq.installation">
   <title>Installation</title>
   <titleabbrev>Installation</titleabbrev>
@@ -418,6 +418,58 @@
       rights to <filename>php.exe</filename>. Also, any authenticated
       user will also need rights to execute <filename>php.exe</filename>.
       And for IIS4 you need to tell it that PHP is a script engine.
+      Also, you will want to read <link linkend="faq.install.forceredirect">
+      this faq</link>.
+     </para>
+    </answer>
+   </qandaentry>
+
+   <qandaentry id="faq.install.forceredirect">
+    <question>
+     <para>
+       When running PHP as CGI with IIS, PWS, OmniHTTPD or Xitami,
+       I get the following error: <literal>Security Alert! PHP CGI 
+       cannot be accessed directly.</literal>.
+     </para>
+    </question>
+    <answer>
+     <para>
+      You must set the <link linkend="ini.cgi.force-redirect">
+      cgi.force_redirect</link> directive to <literal>0</literal>.
+      It defaults to <literal>1</literal> so be sure the directive
+      isn't commented out (with a <literal>;</literal>).  Like
+      all directives, this is set in &php.ini;
+     </para>
+     <para>
+      Because the default is <literal>1</literal>, it's critical
+      that you're 100% sure that the correct &php.ini; file is being 
+      read.  Read <link linkend="faq.install.findphpini">this faq</link>
+      for details.
+     </para>
+    </answer>
+   </qandaentry>
+
+   <qandaentry id="faq.install.findphpini">
+    <question>
+     <para>
+      How do I know if my &php.ini; is being found and read?  It
+      seems like it isn't as my changes aren't being implemented.
+     </para>
+    </question>
+    <answer>
+     <para>
+      To be sure your &php.ini; is being read by PHP, make a call to
+      <function>phpinfo</function> and near the top will be a
+      listing called <literal>Configuration File (php.ini)</literal>.
+      This will tell you where PHP is looking for &php.ini; and
+      whether or not it's being read.  If just a directory PATH exists
+      than it's not being read and you should put your &php.ini;
+      in that directory.  If &php.ini; is included within the PATH than 
+      it is being read.
+     </para>
+     <para>
+      If &php.ini; is being read and you're running PHP as a module
+      then be sure to restart PHP after making changes to &php.ini;
      </para>
     </answer>
    </qandaentry>



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to