php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #66003 document PHP_VALUE and PHP_ADMIN_VALUE FCGI param for lighttpd
Submitted: 2013-10-30 14:14 UTC Modified: 2017-01-28 15:56 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: glen at delfi dot ee Assigned:
Status: Open Package: Other web server
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2013-10-30 14:14 UTC] glen at delfi dot ee
Description:
------------
http://www.php.net/manual/en/install.fpm.configuration.php mentions that you can pass PHP_VALUE and PHP_ADMIN_VALUE in nginx. it's possible in lighttpd 1.4 as well as i already posted into bug: https://bugs.php.net/bug.php?id=51595

proposed wording:

Example #3 set PHP settings in lighttpd.conf

setenv.add-environment += (
"PHP_VALUE" => "
    pcre.backtrack_limit=424242
    pcre.recursion_limit=99999
",
"PHP_ADMIN_VALUE" => "
    open_basedir=/var/www/htdocs
",
)

It is important that you put each PHP.INI parameter on separate line, the spacing does not matter, and you can use single quotes or double quotes (double quotes need to be escaped as \")

this fastcgi param aka environment passing works for php-fcgi as well, not only for fpm, but i don't know where else is this documented


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-28 15:56 UTC] cmb@php.net
-Package: Documentation problem +Package: Other web server
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Feb 01 05:01:31 2025 UTC