<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/apache.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'apache.configuration.php',
    1 => 'Runtime Configuration',
    2 => 'Runtime Configuration',
  ),
  'up' => 
  array (
    0 => 'apache.setup.php',
    1 => 'Installing/Configuring',
  ),
  'prev' => 
  array (
    0 => 'apache.installation.php',
    1 => 'Installation',
  ),
  'next' => 
  array (
    0 => 'ref.apache.php',
    1 => 'Apache Functions',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/apache/ini.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="apache.configuration" class="section">
 <h2 class="title">Runtime Configuration</h2>
 <p class="para">
  The behaviour of the Apache PHP module is affected by settings in <var class="filename">php.ini</var>.
  Configuration settings from <var class="filename">php.ini</var> may be overridden by
  <a href="configuration.changes.php#configuration.changes.apache" class="link">php_flag</a> settings
  in the server configuration file or local <var class="filename">.htaccess</var> files.
 </p>
 <div class="example" id="example-1">
  <p><strong>Example #1 Turning off PHP parsing for a directory using <var class="filename">.htaccess</var></strong></p>
  <div class="example-contents"><div class="cdata"><pre>php_flag engine off</pre></div></div>

 </div>
 <p class="para">
  <table class="doctable table">
   <caption><strong>Apache configuration options</strong></caption>
   
    <thead>
     <tr>
      <th>Name</th>
      <th>Default</th>
      <th>Changeable</th>
      <th>Changelog</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><a href="apache.configuration.php#ini.engine" class="link">engine</a></td>
      <td>&quot;1&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="apache.configuration.php#ini.child-terminate" class="link">child_terminate</a></td>
      <td>&quot;0&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="apache.configuration.php#ini.last-modified" class="link">last_modified</a></td>
      <td>&quot;0&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="apache.configuration.php#ini.xbithack" class="link">xbithack</a></td>
      <td>&quot;0&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

    </tbody>
   
  </table>

  For further details and definitions of the
INI_* modes, see the <a href="configuration.changes.modes.php" class="xref">Where a configuration setting may be set</a>.
 </p>
 
 <p class="para">Here&#039;s a short explanation of
the configuration directives.</p>
 
 <p class="para">
  <dl>
   
    <dt id="ini.engine">
     <code class="parameter">engine</code>
     <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>
    </dt>
    <dd>
     <p class="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 <strong class="userinput"><code>engine off</code></strong>
      in the appropriate places in the <var class="filename">httpd.conf</var> file, PHP can
      be enabled or disabled.
     </p>
    </dd>
   
   
    <dt id="ini.child-terminate">
     <code class="parameter">child_terminate</code>
     <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>
    </dt>
    <dd>
     <p class="para">
      Specify whether PHP scripts may request child process termination on end of request, 
      see also <span class="function"><a href="function.apache-child-terminate.php" class="function">apache_child_terminate()</a></span>.
     </p>
    </dd>
   
   
    <dt id="ini.last-modified">
     <code class="parameter">last_modified</code>
     <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>
    </dt>
    <dd>
     <p class="para">
      Send PHP scripts modification date as Last-Modified: header for this request.
     </p>
    </dd>
   
   
    <dt id="ini.xbithack">
     <code class="parameter">xbithack</code>
     <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>
    </dt>
    <dd>
     <p class="para">
      Parse files with executable bit set as PHP regardless of their file ending.
     </p>
    </dd>
   
  </dl>
 </p>

</div><?php manual_footer($setup); ?>