This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

lighttpd - problems with cgi scripts


I'm running lighttpd on Cygwin, it seems there are some problems, this simple script causes lighttpd to take all from the processor time and never stops until I kill the process:


use strict;
use CGI::Carp qw(fatalsToBrowser);

print "Content-type: text/html\n\n";
print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">', "\n";
print "<html><head><title>DBI Test</title>\n";
print "</head><body>\n";
print "Das ist nur ein CGI Test!\n";
print "</body></html>\n";

However, I have a complex script here which works. There I get an error when I try to connect a postgres database, DBI says:
could not create socket: Operation not permitted

I tried to connect from perl to postgres that works, then I tried the same script calling from lighttpd, it fails with the above mentioned symptoms. Then I tried the really simple script above which I copied from a website. What is wrong with this script? Others are working ok, e.g. this one:


use CGI;
$anfrage = new CGI;

print $anfrage->header(),
      $anfrage->start_html("Hello world"),
      $anfrage->h1("Hello world"),


-- Unsubscribe info: Problem reports: Documentation: FAQ:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]