From owner-freebsd-ports@FreeBSD.ORG  Thu Aug 11 08:00:19 2011
Return-Path: <owner-freebsd-ports@FreeBSD.ORG>
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 DD27F1065670
	for <freebsd-ports@freebsd.org>; Thu, 11 Aug 2011 08:00:18 +0000 (UTC)
	(envelope-from rsc@admadic.de)
Received: from wp135.webpack.hosteurope.de (wp135.webpack.hosteurope.de
	[IPv6:2a01:488:42::50ed:848e])
	by mx1.freebsd.org (Postfix) with ESMTP id 5B7208FC15
	for <freebsd-ports@freebsd.org>; Thu, 11 Aug 2011 08:00:18 +0000 (UTC)
Received: from p5b2b4c9d.dip.t-dialin.net ([91.43.76.157]
	helo=srvms.intra.admadic.com); authenticated
	by wp135.webpack.hosteurope.de running ExIM with esmtpa
	id 1QrQBZ-0001Xy-B1; Thu, 11 Aug 2011 10:00:16 +0200
Received: (qmail 30729 invoked by uid 98); 11 Aug 2011 07:36:30 -0000
Received: from 192.168.1.56 by srvms.intra.admadic.com (envelope-from
	<rsc@admadic.de>, uid 89) with qmail-scanner-2.01 ( 
	Clear:RC:1(192.168.1.56):. 
	Processed in 0.009222 secs); 11 Aug 2011 07:36:30 -0000
Received: from unknown (HELO ?192.168.1.56?) (192.168.1.56)
	by srvms.lpz.q-17.de.local with SMTP; 11 Aug 2011 07:36:30 -0000
Message-ID: <4E438681.3010904@admadic.de>
Date: Thu, 11 Aug 2011 09:36:33 +0200
From: Rainer Schwarze <rsc@admadic.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US;
	rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: Ruslan Mahmatkhanov <cvs-src@yandex.ru>
References: <4E42F7BD.4000105@admadic.de> <4E42FF94.7090106@yandex.ru>
In-Reply-To: <4E42FF94.7090106@yandex.ru>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-bounce-key: webpack.hosteurope.de;rsc@admadic.de;1313049618;677dd053;
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 <freebsd-ports.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports>,
	<mailto:freebsd-ports-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports>
List-Post: <mailto:freebsd-ports@freebsd.org>
List-Help: <mailto:freebsd-ports-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports>,
	<mailto:freebsd-ports-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Aug 2011 08:00:19 -0000

On 8/11/2011 12:00 AM, Ruslan Mahmatkhanov wrote:
> Rainer Schwarze wrote on 11.08.2011 01:27:
>> Hi,
>>
>> 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.
>> Details below.
>> 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.)
> 
> Are you sure it has something to do with jail? Does it work for you when
> not in jail environment?
> The last stable version is 1.9.3. Is updating your ports and using
> version 1.9.3 fix the problem?

I did not yet try running it without jail. I wanted to keep such things
inside the jails, because our last server (6.2) had quite some conflicts
between specific configurations of some ports and I didn't want to run
into those issues again.

I did not yet update the ports tree because I am behind a stone age dsl
line. Getting the new dist files for my required ports would probably
take one or two days (if no transfer error occurs). Frankly speaking - I
switched our new server into production for our intranet after testing
and tuning it for a week, but because the wiki part of it is not that
important I probably didn't notice, that it has those issues. I would
assume, that the wiki started well at some point, but I am not sure.

To me it is interesting, that I can run start lighttpd/moinmoin inside
the jail manually, but not automatically when the jail starts up.

best regards, Rainer

>>
>> Thanks a lot - best regards,
>> Rainer
>>
>> Details:
>>
>> srv# uname -a
>> FreeBSD srv.[snip] 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21
>> 15:48:17 UTC 2009
>> root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>>
>> srv# ezjail-admin start srvks
>> srv# ezjail-admin console srvks
>> ...
>> srvks# tail /var/log/lighttpd/error.log
>> 2011-08-10 20:54:54: (log.c.166) server started
>> 2011-08-10 20:54:54: (mod_fastcgi.c.1104) the fastcgi-backend
>> /usr/local/www/wiki/admadic/moin.fcgi failed to start:
>> 2011-08-10 20:54:54: (mod_fastcgi.c.1108) child exited with status 127
>> /usr/local/www/wiki/admadic/moin.fcgi
>> 2011-08-10 20:54:54: (mod_fastcgi.c.1111) If you're trying to run your
>> app as a FastCGI backend, make sure you're using the FastCGI-enabled
>> version.
>> If this is PHP on Gentoo, add 'fastcgi' to the USE flags.
>> 2011-08-10 20:54:54: (mod_fastcgi.c.1399) [ERROR]: spawning fcgi failed.
>> 2011-08-10 20:54:54: (server.c.938) Configuration of plugins failed.
>> Going down.
>> srvks# /usr/local/etc/rc.d/lighttpd status
>> lighttpd is not running.
>> srvks# /usr/local/etc/rc.d/lighttpd start
>> Starting lighttpd.
>> srvks# /usr/local/etc/rc.d/lighttpd status
>> lighttpd is running as pid 14281.
>> srvks#
>>
>> srvks# /usr/local/sbin/lighttpd -v
>> lighttpd/1.4.28 (ssl) - a light and fast webserver
>> Build-Date: Jul 31 2011 08:23:56
>>
>> (moimoin is 1.9.2)
>>
> 
> 

-- 
Rainer SCHWARZE (Mr.)