Lighttpd中为php加上open_basedir

举例说明
一、

1
2
3
4
5
6
7
8
9
10
11
fastcgi.server = ( ".php" =>
(( "socket" => "/tmp/php-fastcgi.socket",
"bin-path" => "/usr/bin/php5/bin/php-cgi -d open_basedir=/web/www/php5:/web/www/php",
"max-procs" => 10,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "16",
"PHP_FCGI_MAX_REQUESTS" => "1000",
),
"broken-scriptfilename" => "enable"
))
)

二、

1
cgi.assign = ( ".php" => "/usr/bin/php5/bin/php-cgi -d open_basedir=/web/www/php5:/web/www/php" )

发表评论

电子邮件地址不会被公开。 必填项已用*标注