Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" 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 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 '', "\n"; print "DBI Test\n"; print "\n"; print "Das ist nur ein CGI Test!\n"; print "\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ü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/