Date: Mon, 21 Jun 2004 21:15:58 +0100 From: Peter Risdon <peter@circlesquared.com> To: FreeBSD Question List <freebsd-questions@freebsd.org> Subject: maxproc limit reached with trivial exec() in cgi script Message-ID: <40D741FE.2020500@circlesquared.com>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40D741FE.2020500>