php:php
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| php:php [2025/11/10 13:23] โ [Config debug mode in PHP] admin | php:php [2025/11/10 13:52] (current) โ [Debug error in nginx with php-fpm] admin | ||
|---|---|---|---|
| Line 80: | Line 80: | ||
| </ | </ | ||
| Then restart PHP-FPM | Then restart PHP-FPM | ||
| + | |||
| + | Example Before vs After | ||
| + | * Before (catch_workers_output = no):< | ||
| + | [10-Nov-2025 10:30:21] WARNING: [pool www] child 12345 exited on signal 11 (SIGSEGV) | ||
| + | </ | ||
| + | * After (catch_workers_output = yes):< | ||
| + | [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 / | ||
| + | </ | ||
| + | โ 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**:< | ||
| + | log_errors = On | ||
| + | error_reporting = E_ALL | ||
| + | display_errors = Off | ||
| + | </ | ||
| ==== Config in web server to display error log ==== | ==== Config in web server to display error log ==== | ||
| * in nginx< | * in nginx< | ||
php/php.1762781026.txt.gz ยท Last modified: by admin
