按照 提示,安装完php5-cgi后,重起lighttpd服务,发现php页面提示
403-forbidden-error,后来发现需要在/etc/lighttpd/lighttpd.conf中加入如下信息,重启lighttpd后OK。
- fastcgi.server = ( ".php" => ((
- "bin-path" => "/usr/bin/php-cgi",
- "socket" => "/tmp/php.socket",
- "max-procs" => 2,
- "bin-environment" => (
- "PHP_FCGI_CHILDREN" => "16",
- "PHP_FCGI_MAX_REQUESTS" => "10000"
- ),
- "bin-copy-environment" => (
- "PATH", "SHELL", "USER"
- ),
- "broken-scriptfilename" => "enable"
- )))
阅读(4187) | 评论(0) | 转发(0) |