- 论坛徽章:
- 0
|
各位大哥们好,我的lighttpd 1.4.25始终无法启动,检查语法是正确的,php版本是5.2.9,帮帮忙了
这是我的配置文件
[root@lighttpd php-5.2.9]# ls /opt/php_fcgi/bin
pear peardev pecl php php-cgi php-config phpize
[root@lighttpd php-5.2.9]# cat /opt/lighttpd/lighttpd.conf |egrep -v "^$|^#"
server.modules = (
"mod_rewrite",
"mod_access",
"mod_fastcgi",
"mod_simple_vhost",
"mod_evhost",
"mod_cgi",
"mod_compress",
"mod_accesslog" )
server.document-root = "/home/www"
server.errorlog = "/var/log/lighttpd/error.log"
index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm" )
# default mime type
"" => "application/octet-stream",
)
accesslog.filename = "/var/log/lighttpd/access.log"
url.access-deny = ( "~", ".inc" )
$HTTP["url"] =~ "\.pdf$" {
server.range-requests = "disable"
}
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
server.port = 80
server.pid-file = "/var/run/lighttpd.pid"
dir-listing.activate = "enable"
dir-listing.encoding = "utf-8"
fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/tmp/php-fastcgi.socket",
"bin-path" => "/opt/php_fcgi/bin/php-cgi",
"max-procs" => 20,
"max-load-per-proc" => 4,
#"idle-timeout" => 60,
)
)
)
错误日志中报错如下:
[root@lighttpd php-5.2.9]# tail /var/log/lighttpd/error.log
If this is PHP on Gentoo, add 'fastcgi' to the USE flags.
2010-01-18 06:19:24: (mod_fastcgi.c.1399) [ERROR]: spawning fcgi failed.
2010-01-18 06:19:24: (server.c.931) Configuration of plugins failed. Going down.
2010-01-18 06:19:25: (log.c.166) server started
2010-01-18 06:19:25: (mod_fastcgi.c.1104) the fastcgi-backend /opt/php_fcgi/bin/php failed to start:
2010-01-18 06:19:25: (mod_fastcgi.c.110 child exited with status 0 /opt/php_fcgi/bin/php-cgi
2010-01-18 06:19:25: (mod_fastcgi.c.1111) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.
If this is PHP on Gentoo, add 'fastcgi' to the USE flags.
2010-01-18 06:19:25: (mod_fastcgi.c.1399) [ERROR]: spawning fcgi failed.
2010-01-18 06:19:25: (server.c.931) Configuration of plugins failed. Going down. |
|