Nginx 502 Bad Gateway with PHP-FPM: Causes and Fixes
A 502 page tells you nothing. It means Nginx asked PHP-FPM for a response and either...
Developer tools
Turn long one-line queries from logs or ORMs into readable SQL with consistent indentation and keyword case.
This SQL could not be parsed
Paste one or more SQL queries.
Choose the database dialect, keyword case and indentation.
Copy the formatted SQL or download it as a file.
No. It only reformats the text in your browser; it never connects to a database.
Call ->toRawSql() on a query builder (Laravel 10.15+), or use DB::listen / Laravel Telescope, then paste the query here.
Paste this code into your page. It's free, with no sign-up, ads or cookies.
Please keep the "Powered by Dev-Talk" link.
A 502 page tells you nothing. It means Nginx asked PHP-FPM for a response and either...
You defined a scheduled task, deployed, and nothing happens. No error, no log line, no email....
Last updated: 9 November 2026. See the update log at the end.The classic Laravel deployment bug...
We use cookies to improve your experience and analyze traffic. By continuing, you agree to our Privacy Policy.