# Getting 502 bad gateway error

**URL:** https://forum.infinityfree.com/t/getting-502-bad-gateway-error/84469
**Category:** Hosting Support
**Created:** [October 16, 2023, 6:52am UTC](https://forum.infinityfree.com/t/getting-502-bad-gateway-error/84469 "2023-10-16T06:52:02Z")
**Posts on this page:** 1
**Showing post:** 15

<div class="post-metadata">

### Author: ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)
#### Post date: [October 17, 2023, 4:47pm UTC](https://forum.infinityfree.com/t/getting-502-bad-gateway-error/84469/15 "2023-10-17T16:47:49Z")

</div>

Please use the guide below to enable error messages, then try again.

> [@Http error 500](https://forum.infinityfree.com/t/http-error-500/49352):
>
> When trying to access your website, you may see a page which returns the status code “500”. In Google Chrome, you’ll see a page with the error code HTTP ERROR 500. There are typically two reasons which can cause this error: The PHP code has crashed. The .htaccess file contains invalid rules. Here are some things you can try to debug and fix this. Fixing crashing PHP code A HTTP ERROR 500 simply tells you that the PHP code has crashed, but gives no information as to why it has crashed. Gett…

---

_[View the full topic](https://forum.infinityfree.com/t/getting-502-bad-gateway-error/84469)._
