<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<section xml:id="apache.configuration" xmlns="http://docbook.org/ns/docbook">
 &reftitle.runtime;
 <para>
  The behaviour of the Apache PHP module is affected by settings in &php.ini;.
  Configuration settings from &php.ini; may be overridden by
  <link linkend="configuration.changes.apache">php_flag</link> settings
  in the server configuration file or local &htaccess; files.
 </para>
 <example>
  <title>Turning off PHP parsing for a directory using &htaccess;</title>
  <programlisting>php_flag engine off</programlisting>
 </example>
 <para>
  <table>
   <title>Apache configuration options</title>
   <tgroup cols="4">
    <thead>
     <row>
      <entry>&Name;</entry>
      <entry>&Default;</entry>
      <entry>&Changeable;</entry>
      <entry>&Changelog;</entry>
     </row>
    </thead>
    <tbody>
     <row>
      <entry><link linkend="ini.engine">engine</link></entry>
      <entry>"1"</entry>
      <entry>PHP_INI_ALL</entry>
      <entry></entry>
     </row>
     <row>
      <entry><link linkend="ini.child-terminate">child_terminate</link></entry>
      <entry>"0"</entry>
      <entry>PHP_INI_ALL</entry>
      <entry></entry>
     </row>
     <row>
      <entry><link linkend="ini.last-modified">last_modified</link></entry>
      <entry>"0"</entry>
      <entry>PHP_INI_ALL</entry>
      <entry></entry>
     </row>
     <row>
      <entry><link linkend="ini.xbithack">xbithack</link></entry>
      <entry>"0"</entry>
      <entry>PHP_INI_ALL</entry>
      <entry></entry>
     </row>
    </tbody>
   </tgroup>
  </table>
  &ini.php.constants;
 </para>
 
 &ini.descriptions.title;
 
 <para>
  <variablelist>
   <varlistentry xml:id="ini.engine">
    <term>
     <parameter>engine</parameter>
     <type>bool</type>
    </term>
    <listitem>
     <para>
      Turns PHP parsing on or off.
      This directive is really only useful in the Apache module
      version of PHP. It is used by sites that would like to turn
      PHP parsing on and off on a per-directory or per-virtual
      server basis. By putting <userinput>engine off</userinput>
      in the appropriate places in the &httpd.conf; file, PHP can
      be enabled or disabled.
     </para>
    </listitem>
   </varlistentry>
   <varlistentry xml:id="ini.child-terminate">
    <term>
     <parameter>child_terminate</parameter>
     <type>bool</type>
    </term>
    <listitem>
     <para>
      Specify whether PHP scripts may request child process termination on end of request, 
      see also <function>apache_child_terminate</function>.
     </para>
    </listitem>
   </varlistentry>
   <varlistentry xml:id="ini.last-modified">
    <term>
     <parameter>last_modified</parameter>
     <type>bool</type>
    </term>
    <listitem>
     <para>
      Send PHP scripts modification date as Last-Modified: header for this request.
     </para>
    </listitem>
   </varlistentry>
   <varlistentry xml:id="ini.xbithack">
    <term>
     <parameter>xbithack</parameter>
     <type>bool</type>
    </term>
    <listitem>
     <para>
      Parse files with executable bit set as PHP regardless of their file ending.
     </para>
    </listitem>
   </varlistentry>
  </variablelist>
 </para>

</section>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
