delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/25/17:57:42

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <4155E9CE.5060903@familiehaase.de>
Date: Sat, 25 Sep 2004 23:57:34 +0200
From: "Gerrit P. Haase" <gp AT familiehaase DOT de>
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; de-AT; rv:1.7.3) Gecko/20040910
MIME-Version: 1.0
To: lighttpd AT lists DOT kneschke DOT de, cygwin AT cygwin DOT com
Subject: lighttpd - problems with cgi scripts
X-IsSubscribed: yes

Hi,

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:

#!/usr/bin/perl

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:

#!/usr/bin/perl

use CGI;
$anfrage = new CGI;

print $anfrage->header(),
       $anfrage->start_html("Hello world"),
       $anfrage->h1("Hello world"),
       $anfrage->a({-href=>"index.html#bsp1"},"Zur&uuml;ck"),
       $anfrage->end_html();


Gerrit


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019