svn: /phpdoc/en/trunk/install/fpm/ configuration.xml
| From: | Xinchen Hui | Date: | Thu, 08 Nov 2012 06:08:51 +0000 |
| Subject: | svn: /phpdoc/en/trunk/install/fpm/ configuration.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-10674@lists.php.net to get a copy of this message | ||
laruence Thu, 08 Nov 2012 06:08:51 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=328281
Log:
add doc for setting PHP configuration options through webserver config
Changed paths:
U phpdoc/en/trunk/install/fpm/configuration.xml
Modified: phpdoc/en/trunk/install/fpm/configuration.xml
===================================================================
--- phpdoc/en/trunk/install/fpm/configuration.xml 2012-11-08 02:36:34 UTC (rev 328280)
+++ phpdoc/en/trunk/install/fpm/configuration.xml 2012-11-08 06:08:51 UTC (rev 328281)
@@ -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>