Skip to content

Instantly share code, notes, and snippets.

@mattstauffer
Created February 24, 2023 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattstauffer/18122955ac2beb6632401017b50593ec to your computer and use it in GitHub Desktop.
Save mattstauffer/18122955ac2beb6632401017b50593ec to your computer and use it in GitHub Desktop.
Debugging Laravel Valet errors

Here are some examples of errors I've been able to introduce into my Laravel Valet app, and how I fixed the:

502 Bad Gateway

  • You can see here that it means Nginx can't reach PHP: laravel/valet#717 (comment)
  • Solution: valet restart; if that doesn't work, try switching PHP versions: valet use php@8.0

Todo....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment