lighttpd/moinmoin/fastcgi: child exited with status 127

Rainer Schwarze rsc at
Thu Aug 11 08:00:19 UTC 2011

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 at  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.)

More information about the freebsd-ports mailing list