From owner-freebsd-questions@FreeBSD.ORG Mon Jun 21 20:13:49 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A24616A4CE for ; Mon, 21 Jun 2004 20:13:49 +0000 (GMT) Received: from lorna.circlesquared.com (host217-45-219-83.in-addr.btopenworld.com [217.45.219.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id C714243D1D for ; Mon, 21 Jun 2004 20:13:43 +0000 (GMT) (envelope-from peter@circlesquared.com) Received: from circlesquared.com (localhost.circlesquared.com [127.0.0.1]) i5LKFwYn005312 for ; Mon, 21 Jun 2004 21:15:59 +0100 (BST) (envelope-from peter@circlesquared.com) Message-ID: <40D741FE.2020500@circlesquared.com> Date: Mon, 21 Jun 2004 21:15:58 +0100 From: Peter Risdon User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040611 X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Question List Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: maxproc limit reached with trivial exec() in cgi script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jun 2004 20:13:49 -0000 apache+mod_ssl-1.3.29+2.8.16 (suexec), PHP 4.3.4 (cgi), FreeBSD 4.10-STABLE exec("ls -l") in a php cgi script works the first time it is run after a reboot Every subsequent invocation gives /kernel: maxproc limit exceeded by uid 1208, please see tuning(7) and login.conf(5) in /var/log/messages and Warning: exec(): Unable to fork [ls -l] on the webpage. A similar problem showed up in April this year: http://lists.freebsd.org/pipermail/freebsd-questions/2004-April/045102.html But had no responses. That was also a webserver running php4. man 7 tuning doesn't mention maxproc, and /etc/login.conf is the default, with :maxproc=unlimited:\ Googling tells me that unable to fork errors are commonish with php but mostly on Windows, often boil down to permissions, and are supposed to be improved by using the cgi version. This isn't Windows, permissions are fine and I am running as cgi. I suspect php cgi and apache suexec don't play nicely together. But I'd be grateful for any better informed pointers. TIA Peter.