Adsar Logo

PHP-FPM Coredumps

If PHP ever segfaults, you need to grab a core dump to help investigate.

Just a braindump below of how to do it...

sysctl kernel.core_pattern='| /usr/lib/systemd/systemd-coredump %p %u %g %s %t %c %e'

sysctl fs.suid_dumpable=2 

sysctl kernel.core_uses_pid=0

Add to /etc/systemd/system.conf file:


systemctl daemon-reload

Then to view:

coredumpctl list
coredumpctl info PID
coredumpctl gdb PID

Trees for life

Want to get in touch?