The behaviour of the Apache PHP module is affected by settings in php.ini
.
Configuration settings from php.ini
may be overridden by
php_flag settings
in the server configuration file or local .htaccess
files.
Example #1 Turning off PHP parsing for a directory using .htaccess
php_flag engine off
Name | Default | Changeable | Changelog |
---|---|---|---|
engine | "1" | PHP_INI_ALL | |
child_terminate | "0" | PHP_INI_ALL | |
last_modified | "0" | PHP_INI_ALL | |
xbithack | "0" | PHP_INI_ALL |
For further details and definitions of the PHP_INI_* modes, see the Where a configuration setting may be set. Here's a short explanation of the configuration directives.
engine
boolengine off
in the appropriate places in the httpd.conf
file, PHP can be enabled or disabled.child_terminate
boollast_modified
boolxbithack
bool