锟斤拷锟斤拷

FPM 使锟斤拷锟斤拷锟斤拷 php.ini 锟斤法锟斤拷 php-fpm.conf 锟酵斤拷锟教筹拷锟斤拷锟斤拷锟侥硷拷锟斤拷

php-fpm.conf 全锟斤拷锟斤拷锟矫讹拷

pid string

PID 锟侥硷拷锟斤拷位锟矫★拷默锟斤拷为锟秸★拷

error_log string

锟斤拷锟斤拷锟斤拷志锟斤拷位锟矫★拷默锟较o拷#INSTALL_PREFIX#/log/php-fpm.log锟斤拷 锟斤拷锟斤拷锟斤拷锟轿� "syslog"锟斤拷锟斤拷志锟斤拷锟斤拷锟斤拷写锟诫本锟斤拷锟侥硷拷锟斤拷锟斤拷锟角凤拷锟酵碉拷 syslogd锟斤拷

log_level string

锟斤拷锟襟级别。匡拷锟矫硷拷锟斤拷为锟斤拷alert锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷error锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟絯arning锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟絥otice锟斤拷一锟斤拷锟斤拷要锟斤拷息锟斤拷锟斤拷debug锟斤拷锟斤拷锟斤拷锟斤拷息锟斤拷锟斤拷默锟较o拷notice锟斤拷

syslog.facility string

锟斤拷锟矫猴拷锟街筹拷锟斤拷锟铰硷拷锟较拷锟侥拷锟街碉拷锟絛aemon锟斤拷

syslog.ident string

为每锟斤拷锟斤拷息锟斤拷锟角白猴拷锟� 锟斤拷锟斤拷锟酵惶拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷硕锟斤拷 FPM 实锟斤拷锟斤拷锟斤拷锟斤拷锟睫改达拷默锟斤拷值锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷默锟斤拷值锟斤拷php-fpm锟斤拷

emergency_restart_threshold int

锟斤拷锟斤拷咏锟斤拷锟斤拷锟� emergency_restart_interval 锟借定锟斤拷时锟斤拷锟斤拷锟秸碉拷锟矫诧拷锟斤拷锟借定锟斤拷锟斤拷锟斤拷 SIGSEGV 锟斤拷锟斤拷 SIGBUS锟剿筹拷锟斤拷息锟脚o拷锟斤拷FPM锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷0 锟斤拷示"锟截闭该癸拷锟斤拷"锟斤拷默锟斤拷值锟斤拷0锟斤拷锟截闭o拷锟斤拷

emergency_restart_interval mixed

emergency_restart_interval 锟斤拷锟斤拷锟借定平锟斤拷锟斤拷锟斤拷锟侥硷拷锟绞憋拷洹o拷锟矫达拷锟斤拷锟斤拷锟斤拷诮锟斤拷锟斤拷锟斤拷锟斤拷锟叫癸拷锟斤拷锟节达拷锟绞癸拷锟斤拷锟斤拷狻o拷锟斤拷玫锟轿伙拷锟絪锟斤拷锟诫)锟斤拷m锟斤拷锟街o拷锟斤拷h锟斤拷小时锟斤拷锟斤拷锟斤拷 d锟斤拷锟届)锟斤拷默锟较碉拷位锟斤拷s锟斤拷锟诫)锟斤拷默锟斤拷值锟斤拷0锟斤拷锟截闭o拷锟斤拷

process_control_timeout mixed

锟斤拷锟斤拷锟接斤拷锟教斤拷锟斤拷锟斤拷锟斤拷锟教革拷锟斤拷锟脚号的筹拷时时锟戒。锟斤拷锟矫碉拷位锟斤拷s锟斤拷锟诫)锟斤拷m锟斤拷锟街o拷锟斤拷h锟斤拷小时锟斤拷锟斤拷锟斤拷 d锟斤拷锟届)锟斤拷默锟较碉拷位锟斤拷s锟斤拷锟诫)锟斤拷默锟斤拷值锟斤拷0锟斤拷锟截闭o拷锟斤拷

process.max int

Fork 锟斤拷锟斤拷锟� FPM 锟斤拷锟斤拷锟斤拷锟斤拷使锟矫讹拷态锟斤拷锟斤拷锟斤拷锟斤拷锟绞憋拷锟斤拷锟斤拷锟狡匡拷锟皆匡拷锟斤拷锟斤拷一锟斤拷锟斤拷锟教筹拷锟节碉拷全锟街斤拷锟斤拷锟斤拷锟斤拷锟斤拷 使锟斤拷锟斤拷锟斤拷锟斤拷锟侥拷锟街碉拷锟�0锟斤拷

process.priority int

锟斤拷锟斤拷 master 锟斤拷锟教碉拷 nice(2) 锟斤拷锟饺硷拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷舜锟街碉拷锟斤拷锟� 锟斤拷锟斤拷锟斤拷 -19锟斤拷锟斤拷锟斤拷锟斤拷燃锟斤拷锟斤拷锟� 20 锟斤拷锟斤拷锟斤拷锟斤拷锟饺硷拷锟斤拷锟斤拷 默锟斤拷值锟斤拷锟斤拷锟斤拷锟矫★拷

daemonize boolean

锟斤拷锟斤拷 FPM 锟节猴拷台锟斤拷锟叫★拷锟斤拷锟斤拷"no"锟斤拷 FPM 锟斤拷锟斤拷锟斤拷前台锟斤拷锟斤拷锟斤拷锟节碉拷锟皆★拷默锟斤拷值锟斤拷yes锟斤拷

rlimit_files int

锟斤拷锟斤拷 master 锟斤拷锟教的达拷锟侥硷拷锟斤拷锟斤拷锟斤拷 rlimit 锟斤拷锟斤拷

rlimit_core int

锟斤拷锟斤拷 master 锟斤拷锟斤拷锟斤拷锟� core 锟斤拷 rlimit 锟竭寸。 默锟斤拷值锟斤拷0锟斤拷

events.mechanism string

锟斤拷锟斤拷 FPM 使锟矫碉拷锟铰硷拷锟斤拷锟狡★拷 锟斤拷锟斤拷锟斤拷锟斤拷选锟筋:select锟斤拷pool锟斤拷epoll锟斤拷kqueue (*BSD)锟斤拷port (Solaris)锟斤拷 默锟斤拷值锟斤拷锟斤拷锟斤拷锟矫o拷锟皆讹拷锟斤拷猓�

systemd_interval int

使锟斤拷 systemd 锟斤拷锟缴碉拷 FPM 时锟斤拷锟斤拷锟矫硷拷歇锟斤拷锟斤拷锟斤拷锟斤拷锟芥健锟斤拷通知锟斤拷 systemd锟斤拷 锟斤拷锟斤拷为 0 锟斤拷示锟斤拷锟矫★拷默锟斤拷值锟斤拷10锟斤拷

锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷

锟斤拷FPM锟叫o拷锟斤拷锟斤拷使锟矫诧拷同锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟叫讹拷锟斤拷锟斤拷坛亍锟� 锟斤拷些锟斤拷锟矫匡拷锟斤拷锟斤拷锟矫匡拷锟斤拷锟斤拷坛氐锟斤拷锟斤拷锟斤拷谩锟�

listen string

锟斤拷锟矫斤拷锟斤拷 FastCGI 锟斤拷锟斤拷牡锟街凤拷锟斤拷锟斤拷酶锟绞轿拷锟�'ip:port'锟斤拷'port'锟斤拷'/path/to/unix/socket'锟斤拷每锟斤拷锟斤拷锟教池讹拷锟斤拷要锟斤拷锟矫★拷

listen.backlog int

锟斤拷锟斤拷 listen(2) 锟斤拷 backlog 锟斤拷锟街碉拷锟�"-1"锟斤拷示锟斤拷锟斤拷锟狡★拷默锟斤拷值锟斤拷-1锟斤拷

listen.allowed_clients string

锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟接碉拷 FastCGI 锟侥凤拷锟斤拷锟斤拷 IPV4 锟斤拷址锟斤拷锟斤拷同锟斤拷 PHP FastCGI (5.2.2+) 锟叫碉拷 FCGI_WEB_SERVER_ADDRS 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 TCP 锟斤拷锟斤拷锟斤拷锟斤拷锟矫★拷每锟斤拷锟斤拷址锟斤拷锟矫讹拷锟脚分革拷锟斤拷锟斤拷锟矫伙拷锟斤拷锟斤拷没锟斤拷锟轿拷眨锟斤拷锟斤拷锟斤拷锟斤拷魏畏锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷印锟侥拷锟街碉拷锟絘ny锟斤拷 PHP 5.5.20 锟斤拷 5.6.4锟金,匡拷始支锟斤拷 IPv6 锟斤拷址锟斤拷

listen.owner string

锟斤拷锟绞癸拷锟斤拷锟� Unix 锟阶斤拷锟街o拷锟斤拷示锟斤拷锟斤拷权锟睫★拷锟斤拷 Linux 锟叫憋拷锟斤拷锟斤拷锟矫讹拷/写权锟睫o拷锟皆憋拷锟斤拷锟斤拷 WEB 锟斤拷锟斤拷锟斤拷锟斤拷锟接★拷 锟节很讹拷 BSD 锟斤拷锟斤拷锟斤拷系统锟叫匡拷锟皆猴拷锟斤拷权锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟接★拷 默锟斤拷值锟斤拷锟斤拷锟斤拷锟斤拷使锟矫碉拷锟矫伙拷锟斤拷锟介,权锟斤拷为 0660锟斤拷

listen.group string

锟轿硷拷 listen.owner锟斤拷

listen.mode string

锟轿硷拷 listen.owner锟斤拷

listen.acl_users string

锟斤拷系统支锟斤拷 POSIX ACL锟斤拷Access Control Lists锟斤拷时锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷使锟矫达拷选锟筋。 锟斤拷锟斤拷锟斤拷锟剿碉拷时锟津,斤拷锟斤拷锟斤拷锟� listen.owner 锟斤拷 listen.group锟斤拷 值锟角讹拷锟脚分革拷锟斤拷没锟斤拷锟斤拷斜锟� PHP 5.6.5 锟斤拷锟斤拷谩锟�

listen.acl_groups string

锟轿硷拷 listen.acl_users锟斤拷 值锟角讹拷锟脚分革拷锟斤拷没锟斤拷锟斤拷锟斤拷锟斤拷斜锟� PHP 5.6.5 锟斤拷锟斤拷谩锟�

user string

FPM 锟斤拷锟斤拷锟斤拷锟叫碉拷Unix锟矫伙拷锟斤拷锟斤拷锟斤拷锟斤拷锟矫★拷

group string

FPM 锟斤拷锟斤拷锟斤拷锟叫碉拷 Unix 锟矫伙拷锟介。锟斤拷锟斤拷锟斤拷锟斤拷茫锟斤拷锟绞癸拷锟侥拷锟斤拷没锟斤拷锟斤拷没锟斤拷椤�

pm string

锟斤拷锟矫斤拷锟教癸拷锟斤拷锟斤拷锟斤拷喂锟斤拷锟斤拷咏锟斤拷獭锟斤拷锟斤拷锟街碉拷锟�static锟斤拷ondemand锟斤拷dynamic锟斤拷锟斤拷锟斤拷锟斤拷锟矫★拷

static - 锟接斤拷锟教碉拷锟斤拷锟斤拷锟角固讹拷锟侥o拷pm.max_children锟斤拷锟斤拷

ondemand - 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷时锟脚诧拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷时锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 dynamic 锟洁反锟斤拷锟节凤拷锟斤拷锟斤拷锟斤拷时 pm.start_servers 锟斤拷锟斤拷锟斤拷锟剿★拷

dynamic - 锟接斤拷锟教碉拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟矫的伙拷锟斤拷锟较讹拷态锟斤拷锟矫o拷pm.max_children锟斤拷pm.start_servers锟斤拷pm.min_spare_servers锟斤拷pm.max_spare_servers锟斤拷

pm.max_children int

pm 锟斤拷锟斤拷为 static 时锟斤拷示锟斤拷锟斤拷锟斤拷锟接斤拷锟教碉拷锟斤拷锟斤拷锟斤拷pm 锟斤拷锟斤拷为 dynamic 时锟斤拷示锟斤拷锟缴达拷锟斤拷锟斤拷锟接斤拷锟教碉拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟矫★拷

锟斤拷选锟斤拷锟斤拷锟矫匡拷锟斤拷同时锟结供锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷啤锟斤拷锟斤拷锟� Apache 锟斤拷 mpm_prefork 锟斤拷 MaxClients 锟斤拷锟斤拷锟矫猴拷 锟斤拷通PHP FastCGI锟叫碉拷 PHP_FCGI_CHILDREN 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷

pm.start_servers in

锟斤拷锟斤拷锟斤拷锟斤拷时锟斤拷锟斤拷锟斤拷锟接斤拷锟斤拷锟斤拷目锟斤拷锟斤拷锟斤拷 pm 锟斤拷锟斤拷为 dynamic 时使锟矫★拷默锟斤拷值锟斤拷min_spare_servers + (max_spare_servers - min_spare_servers) / 2锟斤拷

pm.min_spare_servers int

锟斤拷锟矫匡拷锟叫凤拷锟斤拷锟斤拷痰锟斤拷锟斤拷锟斤拷目锟斤拷锟斤拷锟斤拷 pm 锟斤拷锟斤拷为 dynamic 时使锟矫★拷锟斤拷锟斤拷锟斤拷锟矫★拷

pm.max_spare_servers int

锟斤拷锟矫匡拷锟叫凤拷锟斤拷锟斤拷痰锟斤拷锟斤拷锟斤拷目锟斤拷锟斤拷锟斤拷 pm 锟斤拷锟斤拷为 dynamic 时使锟矫★拷锟斤拷锟斤拷锟斤拷锟矫★拷

pm.process_idle_timeout mixed

锟斤拷锟斤拷锟斤拷锟斤拷锟街拷锟斤拷锟斤拷锟斤拷锟叫斤拷锟教★拷 锟斤拷锟斤拷锟斤拷锟斤拷 pmondemand锟斤拷 锟斤拷锟矫碉拷位锟斤拷s锟斤拷锟诫)锟斤拷m锟斤拷锟街o拷锟斤拷h锟斤拷小时锟斤拷锟斤拷锟斤拷 d锟斤拷锟届)锟斤拷默锟较碉拷位锟斤拷10s锟斤拷

pm.max_requests int

锟斤拷锟斤拷每锟斤拷锟接斤拷锟斤拷锟斤拷锟斤拷之前锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷诳锟斤拷艽锟斤拷锟斤拷诖锟叫孤╋拷牡锟斤拷锟斤拷锟侥o拷锟斤拷锟剿碉拷欠浅锟斤拷锟斤拷玫摹锟斤拷锟斤拷锟斤拷锟斤拷为 '0' 锟斤拷一直锟斤拷锟斤拷锟斤拷锟襟,碉拷同锟斤拷 PHP_FCGI_MAX_REQUESTS 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷默锟斤拷值锟斤拷0锟斤拷

pm.status_path string

FPM 状态页锟斤拷锟斤拷锟街凤拷锟斤拷锟斤拷没锟斤拷锟斤拷锟矫o拷锟斤拷锟睫凤拷锟斤拷锟斤拷状态页锟芥,默锟斤拷值锟斤拷锟睫★拷

ping.path string

FPM 锟斤拷锟揭筹拷锟斤拷 ping 锟斤拷址锟斤拷锟斤拷锟矫伙拷锟斤拷锟斤拷茫锟斤拷锟斤拷薹锟斤拷锟斤拷锟� ping 页锟芥。锟斤拷页锟斤拷锟斤拷锟斤拷锟解部锟斤拷锟� FPM 锟角凤拷锟筋并锟揭匡拷锟斤拷锟斤拷应锟斤拷锟斤拷锟斤拷注锟斤拷锟斤拷锟斤拷锟叫憋拷呖锟酵凤拷锟�/锟斤拷锟斤拷

ping.response string

锟斤拷锟节讹拷锟斤拷 ping 锟斤拷锟斤拷姆锟斤拷锟斤拷锟接︼拷锟斤拷锟斤拷锟轿� HTTP 200 锟斤拷 text/plain 锟斤拷式锟侥憋拷锟斤拷默锟斤拷值锟斤拷pong锟斤拷

process.priority int

锟斤拷锟斤拷 worker 锟斤拷 nice(2)锟斤拷锟饺硷拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷说幕锟斤拷锟斤拷锟� 锟斤拷值锟斤拷 -19锟斤拷锟斤拷锟斤拷锟斤拷燃锟斤拷锟� 锟斤拷 20锟斤拷锟斤拷锟斤拷锟斤拷锟饺硷拷锟斤拷锟斤拷 默锟斤拷值锟斤拷锟斤拷锟斤拷锟斤拷

prefix string

锟斤拷锟铰凤拷锟绞笔癸拷玫锟角白猴拷锟�

request_terminate_timeout mixed

锟斤拷锟矫碉拷锟斤拷锟斤拷锟斤拷某锟绞憋拷锟街故憋拷洹o拷锟窖★拷锟斤拷锟杰伙拷锟� php.ini 锟斤拷锟斤拷锟叫碉拷 'max_execution_time' 锟斤拷为某些锟斤拷锟斤拷原锟斤拷没锟斤拷锟斤拷止锟斤拷锟叫的脚憋拷锟斤拷锟矫★拷锟斤拷锟斤拷为 '0' 锟斤拷示 'Off'锟斤拷锟斤拷锟矫碉拷位锟斤拷s锟斤拷锟诫)锟斤拷m锟斤拷锟街o拷锟斤拷h锟斤拷小时锟斤拷锟斤拷锟斤拷 d锟斤拷锟届)锟斤拷默锟较碉拷位锟斤拷s锟斤拷锟诫)锟斤拷默锟斤拷值锟斤拷0锟斤拷锟截闭o拷锟斤拷

request_slowlog_timeout mixed

锟斤拷一锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷玫某锟绞笔憋拷锟襟,就会将锟斤拷应锟斤拷 PHP 锟斤拷锟矫讹拷栈锟斤拷息锟斤拷锟斤拷写锟诫到锟斤拷锟斤拷志锟叫★拷锟斤拷锟斤拷为 '0' 锟斤拷示 'Off'锟斤拷锟斤拷锟矫碉拷位锟斤拷s锟斤拷锟诫)锟斤拷m锟斤拷锟街o拷锟斤拷h锟斤拷小时锟斤拷锟斤拷锟斤拷 d锟斤拷锟届)锟斤拷默锟较碉拷位锟斤拷s锟斤拷锟诫)锟斤拷默锟斤拷值锟斤拷0锟斤拷锟截闭o拷锟斤拷

slowlog string

锟斤拷锟斤拷锟斤拷募锟铰硷拷锟街撅拷锟侥拷锟街碉拷锟�#INSTALL_PREFIX#/log/php-fpm.log.slow锟斤拷

rlimit_files int

锟斤拷锟斤拷锟侥硷拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 rlimit 锟斤拷锟狡★拷默锟斤拷值锟斤拷系统锟斤拷锟斤拷值锟斤拷

rlimit_core int

锟斤拷锟矫猴拷锟斤拷 rlimit 锟斤拷锟斤拷锟斤拷锟街碉拷锟斤拷锟斤拷锟街碉拷锟�'unlimited'锟斤拷0 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷默锟斤拷值锟斤拷系统锟斤拷锟斤拷值锟斤拷

chroot string

锟斤拷锟斤拷时锟斤拷 Chroot 目录锟斤拷锟斤拷锟斤拷锟斤拷锟侥柯硷拷锟揭拷蔷锟斤拷锟铰凤拷锟斤拷锟斤拷锟斤拷没锟斤拷锟斤拷锟矫o拷锟斤拷 chroot 锟斤拷锟斤拷使锟矫★拷

chdir string

锟斤拷锟斤拷锟斤拷锟斤拷目录锟斤拷锟斤拷锟斤拷时锟斤拷锟皆讹拷 Chdir 锟斤拷锟斤拷目录锟斤拷锟斤拷锟斤拷锟斤拷锟侥柯硷拷锟揭拷蔷锟斤拷锟铰凤拷锟斤拷锟侥拷锟街碉拷锟斤拷锟角澳柯硷拷锟斤拷锟斤拷吒锟侥柯硷拷锟絚hroot时锟斤拷锟斤拷

catch_workers_output boolean

锟截讹拷锟斤拷锟斤拷锟叫癸拷锟斤拷锟叫碉拷 stdout 锟斤拷 stderr 锟斤拷锟斤拷要锟侥达拷锟斤拷锟斤拷志锟侥硷拷锟叫★拷锟斤拷锟矫伙拷锟斤拷锟斤拷茫锟絪tdout 锟斤拷 stderr 锟斤拷锟斤拷锟斤拷锟� FastCGI 锟侥癸拷锟斤拷锟截讹拷锟斤拷 /dev/null锟斤拷默锟斤拷值锟斤拷锟睫★拷

clear_env boolean

为 FPM worker 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟� 锟节斤拷锟教筹拷锟斤拷锟斤拷锟侥硷拷锟斤拷锟斤拷锟矫伙拷锟斤拷锟斤拷锟斤拷前锟斤拷锟斤拷止锟斤拷锟斤拷系统锟侥伙拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 FPM worker 锟斤拷锟教★拷 锟斤拷 PHP 5.4.27锟斤拷 5.5.11 锟斤拷 5.6.0 锟斤拷 默锟斤拷值: Yes

security.limit_extensions string

锟斤拷锟斤拷 FPM 锟斤拷锟斤拷锟斤拷锟斤拷慕疟锟斤拷锟秸癸拷锟斤拷锟� 锟斤拷锟斤拷锟矫匡拷锟斤拷预锟斤拷 web 锟斤拷锟斤拷锟斤拷锟斤拷锟矫的达拷锟斤拷 应锟斤拷锟斤拷锟斤拷 FPM 锟斤拷锟斤拷锟斤拷锟斤拷 .php 锟斤拷展锟斤拷锟斤拷锟斤拷止锟斤拷锟斤拷锟矫伙拷使锟斤拷锟斤拷锟斤拷锟斤拷展锟斤拷锟斤拷锟斤拷 php 锟斤拷锟诫。 默锟斤拷值锟斤拷 .php .phar

access.log string

Access log 锟侥硷拷锟斤拷 默锟斤拷值锟斤拷锟斤拷锟斤拷锟斤拷

access.format string

access log 锟侥革拷式锟斤拷 默锟斤拷值: "%R - %u %t \"%m %r\" %s"

锟斤拷锟斤拷锟斤拷锟斤拷为一锟斤拷锟斤拷锟叫池达拷锟捷革拷锟接的伙拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟竭革拷锟斤拷 PHP 锟斤拷锟斤拷锟斤拷值锟斤拷锟斤拷锟斤拷锟节斤拷锟教筹拷锟斤拷锟斤拷锟侥硷拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷貌锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟�

Example #1 锟斤拷锟斤拷锟叫池达拷锟捷伙拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 PHP 锟斤拷锟斤拷锟斤拷值

env[HOSTNAME] = $HOSTNAME
       env[PATH] = /usr/local/bin:/usr/bin:/bin
       env[TMP] = /tmp
       env[TMPDIR] = /tmp
       env[TEMP] = /tmp

       php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
       php_flag[display_errors] = off
       php_admin_value[error_log] = /var/log/fpm-php.www.log
       php_admin_flag[log_errors] = on
       php_admin_value[memory_limit] = 32M
PHP锟斤拷锟斤拷值通锟斤拷 php_value 锟斤拷锟斤拷 php_flag 锟斤拷锟矫o拷锟斤拷锟揭会覆锟斤拷锟斤拷前锟斤拷值锟斤拷锟斤拷注锟斤拷 disable_functions 锟斤拷锟斤拷 disable_classes 锟斤拷 php.ini 之锟叫讹拷锟斤拷锟街碉拷锟斤拷岜伙拷锟斤拷堑锟斤拷锟斤拷锟斤拷腔峤拷碌锟斤拷锟斤拷酶锟斤拷锟斤拷锟皆拷锟街碉拷暮锟斤拷妗�

使锟斤拷 php_admin_value 锟斤拷锟斤拷 php_admin_flag 锟斤拷锟斤拷锟街碉拷锟斤拷锟斤拷鼙锟� PHP 锟斤拷锟斤拷锟叫碉拷 ini_set() 锟斤拷锟角★拷

锟斤拷 5.3.3 锟斤拷也锟斤拷锟斤拷通锟斤拷 web 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 PHP 锟斤拷锟借定锟斤拷

Example #2 锟斤拷 nginx.conf 锟斤拷锟借定 PHP

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";
Caution

锟斤拷锟斤拷锟斤拷些锟借定锟斤拷锟斤拷 FastCGI 锟斤拷头锟斤拷锟捷革拷 php-fpm锟斤拷php-fpm 锟斤拷应锟襟定碉拷锟解部锟斤拷锟斤拷锟皆凤拷锟绞的碉拷址锟较o拷锟斤拷锟斤拷锟轿猴拷锟剿讹拷锟斤拷锟睫革拷 PHP 锟斤拷锟斤拷锟斤拷选锟斤拷锟剿★拷锟轿硷拷 listen.allowed_clients锟斤拷