Enable php-fpm to create core dumps
From Brian Nelson Ramblings
Enable php-fpm to create core dumps
You can enable core dump with:
su - echo '/tmp/core-%e.%p' > /proc/sys/kernel/core_pattern echo 0 > /proc/sys/kernel/core_uses_pid ulimit -c unlimited
Set the rlimit_core directive in /etc/php-fpm.d/www.conf to unlimited:
rlimit_core = unlimited
How to read the php-fpm core dump
yum install gdb -y
which php-fpm
gdb /path/to/php-fpm core.dump
Then type in bt
bt
Out pours alot of info to read