502 Gateway Error message for my website. How can I resolve this?
Linode
Linode Staff
I'm seeing a 502 error message when viewing my website. How can I fix this
2 Replies
A "502 Bad Gateway" error indicates a problem with the internal configuration of your server. This is usually related to the upstream software, whether it be PHP, Python, Node.js, Rails, etc.
Here are some helpful links which go into some more detail about the error you're seeing:
- https://www.scalescale.com/tips/nginx/502-bad-gateway-error-using-nginx/#
- https://www.datadoghq.com/blog/nginx-502-bad-gateway-errors-php-fpm/
Do you have a developer or administrator who you can reach out to? In common LAMP/LEMP setups, you want to see if PHP is having trouble (the upstream in this case)