mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
add doc for setting PHP configuration options through webserver config
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328281 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
26bfde6f87
commit
2026bba335
1 changed files with 24 additions and 0 deletions
|
@ -480,6 +480,30 @@
|
|||
Settings defined with <literal>php_admin_value</literal> and <literal>php_admin_flag</literal>
|
||||
cannot be overriden with <function>ini_set</function>.
|
||||
</para>
|
||||
<para>
|
||||
As of 5.3.3, PHP settings are also possible to be set in webserver.
|
||||
<example>
|
||||
<title>set PHP settings in nginx.conf</title>
|
||||
<programlisting role="ini">
|
||||
<![CDATA[
|
||||
set $php_value "pcre.backtrack_limit=424242";
|
||||
set $php_value "$php_value \n pcre.recursion_limit=99999";
|
||||
fastcgi_param PHP_VALUE $php_value;
|
||||
|
||||
fastcgi_param PHP_ADMIN_VALUE "open_basedir=/var/www/htdocs";
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
<caution>
|
||||
<para>
|
||||
Because these settings are passed to php-fpm as fastcgi headers,
|
||||
php-fpm should not be bound to a worldwide accessible address.
|
||||
Otherwise, anyone could alter the PHP configuration options.
|
||||
See also
|
||||
<link linkend="listen-allowed-clients">listen.allowed_clients</link>.
|
||||
</para>
|
||||
</caution>
|
||||
</para>
|
||||
</sect2>
|
||||
|
||||
</sect1>
|
||||
|
|
Loading…
Reference in a new issue