spawn-fcgi -u -g disable php from making core dump
ulimit -c 0 exec setuidgid user /usr/bin/php-cgi -b 1026
it will generate core even after setuidgid, and it is safe to do so, because the whole php-fcgi process data belongs to the child from the begining of process.
but with spawn-fcgi
ulimit -c 0 exec /usr/bin/setuidgid traviantoolbox /usr/bin/spawn-fcgi -p 1027 -f /usr/bin/php-cgi -C 4
php will not generate a core file on segv.
not verified, as it was not me but renchap that got the problem.
Also available in: Atom