From owner-freebsd-ports@FreeBSD.ORG Thu Aug 11 17:38:33 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 839F41065670 for ; Thu, 11 Aug 2011 17:38:33 +0000 (UTC) (envelope-from sahil@tandon.net) Received: from spartan.hamla.org (spartan.hamla.org [206.251.255.30]) by mx1.freebsd.org (Postfix) with ESMTP id 5E13B8FC1E for ; Thu, 11 Aug 2011 17:38:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by spartan.hamla.org (Postfix) with ESMTP id AB78F170E6; Thu, 11 Aug 2011 13:39:01 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tandon.net; h= date:date:subject:subject:from:from:x-mailer:message-id :content-type:content-type:content-transfer-encoding :mime-version:in-reply-to:references:received:received; s=aegis; t=1313084341; bh=9fe5/VFhxI36Wb3Mel+azFFaG69YCveGRw/A1+pS930=; b= KnaLK6Z8pTAZgRm6h3F/XBPaE9QOTq6fHSzpWGOYPw+2alRwNVuK890n0qZ2EVuE YmTkBI68Xxdfu1VtA0BbBk5ibgeX5OhT322GpZibK9n5E+QsyxwokUSpM9ZwdWsq HrfAJnDc0V2hknqfVXE8bhdNFIQaVtl32LVKAThfB94= X-Virus-Scanned: by ClamAV at spartan.hamla.org Received: from spartan.hamla.org ([127.0.0.1]) by localhost (spartan.hamla.org [127.0.0.1]) (amavisd-new, port 10027) with LMTP id 1i1EdZp+EnIJ; Thu, 11 Aug 2011 13:39:01 -0400 (EDT) Received: from [10.62.0.169] (mobile-166-137-136-091.mycingular.net [166.137.136.91]) by spartan.hamla.org (Postfix) with ESMTPSA id 6E5AF170E5; Thu, 11 Aug 2011 13:38:55 -0400 (EDT) References: <4E42F7BD.4000105@admadic.de> <20110811013130.GF262@magic.hamla.org> <4E438787.4050503@admadic.de> In-Reply-To: <4E438787.4050503@admadic.de> Mime-Version: 1.0 (iPhone Mail 8C148a) Message-Id: X-Mailer: iPhone Mail (8C148a) From: Sahil Tandon Date: Thu, 11 Aug 2011 13:37:41 -0400 To: Rainer Schwarze Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "freebsd-ports@freebsd.org" Subject: Re: lighttpd/moinmoin/fastcgi: child exited with status 127 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2011 17:38:33 -0000 On Aug 11, 2011, at 3:40 AM, Rainer Schwarze wrote: > On 8/11/2011 3:31 AM, Sahil Tandon wrote: >> On Wed, 2011-08-10 at 23:27:25 +0200, Rainer Schwarze wrote: >> >>> I want to run a moinmoin wiki in a jail via lighttpd. When I start the >>> jail, lighttpd logs an error and stops. When I run it manually, it >>> starts without problems and I can access the wiki in the browser. >>> >>> It looks like there are certain differences between starting when the >>> jail starts and starting manually. Which of those would influence this >>> issue? Can you give me any hints where I should start looking? (I asked >>> google but didn't get useful results.) >> >> What is the output of the following command, inside the jail, as the >> user that runs lighttpd? >> >> % php-cgi -v > > srvks# php-cgi -v > php-cgi: Command not found. > > :-) php is not needed there (at least I hope so) Woops that's how I'm setup and made the rushed assumption about you. :) >>> 2011-08-10 20:54:54: (mod_fastcgi.c.1108) child exited with status 127 >>> /usr/local/www/wiki/admadic/moin.fcgi >> >> Without more information, my WAG is that certain files (libraries, >> perhaps) used by fcgi cannot be found by lighttpd from inside the jail. > > The confusing part is, I can start it in the jail manually with > > /usr/local/etc/rc.d/lighttpd start > > So all the required things should be there. > > Are there any debug flags which I could activate to get more output from > lighttpd? I probably don't need those which log requests etc. There > don't seem to be any as command line parameter?