我正在尝试开始快速run的开发,为此我下载了libfcgi的参考实现,并试图获得一个使用lighttpd运行的测试程序。由于fcgi_stdio允许cgi向后兼容,所以我决定从这一点开始。然而,我无法让examples/tiny-fcgi.c与lighttpd一起工作,它产生了一个internal server errror 500,同样的配置允许运行lighttpd示例程序(,低于C/C++ FastCGI on lightty named socket)。然而,我完全不清楚为什么默认提供的示例不能工作。
问题:
引用实现中的示例/微型-fcgi.c示例有什么问题,导致lighttpd返
我已经使用yum安装了FastCGI,并编辑了我的lighttpd.conf,但是当重新启动服务器时,我会收到这个错误。
2009-06-24 12:44:43: (log.c.97) server started
2009-06-24 12:44:43: (mod_fastcgi.c.924) bind failed for: unix:/var/run/lighttpd/php-fastcgi.socket-0 No such file or directory
2009-06-24 12:44:43: (mod_fastcgi.c.1365) [ERROR]: spawning fc
我正在编写脚本,我需要能够将其他配置信息写入.conf文件。
问题是:
问题是,由于权限问题,我无法将其他数据写入文件。下面是我使用的代码:
my $conf = "/etc/lighttpd/lighttpd.conf";
open my $handle, ">>", $conf or die $!;
# spacing counts, hence the indentation
print $handle 'fastcgi.server = (
".php" => ((
"bin-pa