php debugging

There are a couple ways to debug php applications. We can enable core dump and/or install Xdebug. Enable php core dump on php-fpm First instruct the kernel to write core dumps to /tmp. On some system, dumps are fed to abrtd.

In php-fpm.conf, add the following

Restart php-fpm and use gdb to debug the dump files. To get the most out of the dump files, install the debuginfo…

Read More