Имеем:
~> rpm -qa | grep CGI
FastCGI-2.4.0-33
FastCGI-devel-2.4.0-3.1
perl-FastCGI-2.4.0-33
~> rpm -qa | grep lighttpd
lighttpd-1.4.13-41.1
А также:
1)скрипт /srv/www/htdocs/cgi-bin/author.fcgi:
#!/usr/bin/perl -w
use CGI::Fast qw(:standard);
$COUNTER = 0;
while (new CGI::Fast) {
print header;
print start_html("Fast CGI Rocks");
print
h1("Fast CGI Rocks"),
"Invocation number ",b($COUNTER++),
" PID ",b($$),".",
hr;
print end_html;
}
2)конфиг /etc/lighttpd/conf.d/fastcgi.conf:
server.modules += ( "mod_fastcgi" )
fastcgi.debug = 1
fastcgi.server = ( ".fcgi" =>
((
"socket" => "/tmp/fcgi.socket"
))
)
3)Главный конфиг /etc/lighttpd/lighttpd.conf:
server.port = 80
server.use-ipv6 = "enable"
server.username = "lighttpd"
server.groupname = "lighttpd"
var.log_root = "/var/log/lighttpd/"
var.server_root = "/srv/www/"
var.state_dir = "/var/run/"
var.home_dir = "/var/lib/lighttpd/"
var.cache_dir = home_dir + "cache/compress/"
var.vhosts_dir = server_root + "vhosts/"
server.document-root = server_root + "htdocs/"
server.tag = "lighttpd (1.4.13/SuSE)"
server.pid-file = state_dir + "lighttpd.pid"
include "modules.conf"
server.errorlog = log_root + "error.log"
include "conf.d/access_log.conf"
include "conf.d/debug.conf"
server.event-handler = "linux-sysepoll"
server.network-backend = "linux-sendfile"
server.max-fds = 2048
server.stat-cache-engine = "simple"
index-file.names = (
"index.xhtml", "index.html", "index.htm", "default.htm", "index.php"
)
url.access-deny = ( "~", ".inc" )
$HTTP["url"] =~ "\.pdf$" {
server.range-requests = "disable"
}
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".scgi" )
include "conf.d/mime.conf"
include "conf.d/dirlisting.conf"
server.follow-symlink = "enable"
server.upload-dirs = ( "/var/tmp" )
Что делаю:
1)sudo /etc/rc.d/lighttpd restart
Shutting down lighttpd done
Starting lighttpd done
2)Перехожу из браузера на URL: http://127.0.0.1/cgi-bin/author.fcgi
Что получаю:
1)500 - Internal Server Error
2)/var/log/lighttpd/error.log:
2007-06-09 20:41:07: (log.c.135) server stopped
2007-06-09 20:41:07: (log.c.75) server started
2007-06-09 20:41:09: (mod_fastcgi.c.1705) connect failed: No such file or directory on unix:/tmp/fcgi.socket
2007-06-09 20:41:09: (mod_fastcgi.c.2817) backend died, we disable it for a 5 seconds and send the request to another backend instead: reconnects: 0 load: 1
2007-06-09 20:41:09: (mod_fastcgi.c.1449)
2007-06-09 20:41:09: (connections.c.816) missing cleanup in fastcgi
2007-06-09 20:41:10: (mod_fastcgi.c.3423) all handlers for /cgi-bin/author.fcgi on .fcgi are down.
Вопрос заключается в том как все это исправить. Облазил весь интернет, ответа не нашел. Надеюсь на вашу помощь