📄 apache.configuration.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Runtime Configuration</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="apache.installation.html">Installation</a></div> <div class="next" style="text-align: right; float: right;"><a href="apache.resources.html">Resource Types</a></div> <div class="up"><a href="apache.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><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.html#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"> <p><b>Example #1 Turning off PHP parsing for a directory using <var class="filename">.htaccess</var></b></p> <div class="example-contents"><div class="cdata"><pre>php_flag engine off</pre></div></div> </div> <p class="para"> <table border="5"> <caption><b>Apache configuration options</b></caption> <colgroup> <thead valign="middle"> <tr valign="middle"> <th colspan="1">Name</th> <th colspan="1">Default</th> <th colspan="1">Changeable</th> <th colspan="1">Changelog</th> </tr> </thead> <tbody valign="middle" class="tbody"> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">engine</td> <td colspan="1" rowspan="1" align="left">"1"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td> <td colspan="1" rowspan="1" align="left">Available since PHP 4.0.5.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">child_terminate</td> <td colspan="1" rowspan="1" align="left">"0"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td> <td colspan="1" rowspan="1" align="left">Available since PHP 4.0.5.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">last_modified</td> <td colspan="1" rowspan="1" align="left">"0"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td> <td colspan="1" rowspan="1" align="left">Available since PHP 4.0.5.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">xbithack</td> <td colspan="1" rowspan="1" align="left">"0"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td> <td colspan="1" rowspan="1" align="left">Available since PHP 4.0.5.</td> </tr> </tbody> </colgroup> </table> For further details and definitions of the PHP_INI_* constants, see the <a href="ini.html" class="xref">php.ini directives</a>. </p> <p class="para">Here's a short explanation ofthe configuration directives.</p> <p class="para"> <dl> <dt id="ini.engine"> <span class="term"> <i><tt class="parameter">engine</tt></i> <a href="language.types.boolean.html" class="type boolean">boolean</a> </span> <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> <dt id="ini.child-terminate"> <span class="term"> <i><tt class="parameter">child_terminate</tt></i> <a href="language.types.boolean.html" class="type boolean">boolean</a> </span> <dd> <p class="para"> Specify whether PHP scripts may request child process termination on end of request, see also <a href="function.apache-child-terminate.html" class="function">apache_child_terminate()</a>. </p> </dd> </dt> <dt id="ini.last-modified"> <span class="term"> <i><tt class="parameter">last_modified</tt></i> <a href="language.types.boolean.html" class="type boolean">boolean</a> </span> <dd> <p class="para"> Send PHP scripts modification date as Last-Modified: header for this request. </p> </dd> </dt> <dt id="ini.xbithack"> <span class="term"> <i><tt class="parameter">xbithack</tt></i> <a href="language.types.boolean.html" class="type boolean">boolean</a> </span> <dd> <p class="para"> Parse files with executable bit set as PHP regardless of their file ending. </p> </dd> </dt> </dl> </p></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="apache.installation.html">Installation</a></div> <div class="next" style="text-align: right; float: right;"><a href="apache.resources.html">Resource Types</a></div> <div class="up"><a href="apache.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -