User Tools

Site Tools


php:php

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
php:php [2025/11/10 13:23] โ€“ [Config debug mode in PHP] adminphp:php [2025/11/10 13:52] (current) โ€“ [Debug error in nginx with php-fpm] admin
Line 80: Line 80:
 </code> </code>
 Then restart PHP-FPM Then restart PHP-FPM
 +
 +Example Before vs After
 +  * Before (catch_workers_output = no):<code>
 +[10-Nov-2025 10:30:21] WARNING: [pool www] child 12345 exited on signal 11 (SIGSEGV)
 +</code>๐Ÿ‘‰ You only see a generic signal crash.
 +  * After (catch_workers_output = yes):<code>
 +[10-Nov-2025 10:30:21] WARNING: [pool www] child 12345 said into stderr: "PHP Fatal error: Uncaught Error: Call to undefined function get_header() in /var/www/html/wp-content/themes/flatsome/page.php:12"
 +</code>
 +โœ… Now you can see the exact file and line that crashed WordPress.
 +๐Ÿ› ๏ธ Combine With These for Full Debugging, Inside the same pool file or your **php.ini**:<code ini>
 +log_errors = On
 +error_reporting = E_ALL
 +display_errors = Off
 +</code>
 ==== Config in web server to display error log ==== ==== Config in web server to display error log ====
   * in nginx<code>   * in nginx<code>
php/php.1762781026.txt.gz ยท Last modified: by admin