check the error log file and find the error records.. Another reason causing the error is the possibility that your hosting account is exceeding the resource limit on the server.. Here's how you can check it > Check out 'Resources Usage in cPanel > Check out SSH tunnel. How to Fix check the error log file and see the message. After finding the culprit, you can optimize the performance so that the site does not cross the resources limit any longer.. What does the error mean. 502 Bad Gateway is indicative of the server failing to get response from the server when trying to serve the browser request or load web page.. It means that the server got response from another server when trying to load the page or complete request by browser.. The difference is that instead of receiving response, the server received no response at all for duration of time. LVEs limit the number of entry processes so that one website does not end-up exhausting all Apache processes. you may need to optimize the script or upgrade the plan to the one with higher limit on server resources..
Read more