# Error 500 when visiting website

**URL:** <https://forum.infinityfree.com/t/error-500-when-visiting-website/87449>\
**Category:** Hosting Support\
**Created:** [December 12, 2023, 7:28pm UTC](https://forum.infinityfree.com/t/error-500-when-visiting-website/87449 "2023-12-12T19:28:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![anon90933456](https://forum.infinityfree.com/letter_avatar/anon90933456/32/6_449c533f586939b6e5f246632a46421f.png) [@anon90933456](https://forum.infinityfree.com/u/anon90933456)\
**Post date:** [December 12, 2023, 7:32pm UTC](https://forum.infinityfree.com/t/error-500-when-visiting-website/87449/2 "2023-12-12T19:32:45Z")

</div>

Hi and welcome to the forum! Since the error is generated by the browser and not by the server, the best thing to do is to enable Display Errors with the help of this article to see the error the website is throwing:

> [@Http error 500](https://forum.infinityfree.com/t/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…

As for this:

> [@davemill8](#):
>
> I also pinged the site using command prompt and all packets were lost.

> [@I can't ping my website! Is the server down?](https://forum.infinityfree.com/t/50504):
>
> If you try to ping your website or any InfinityFree server, you’ll see the ping fail with 100% packet loss. This is completely normal and doesn’t mean your website is down. On Windows, you’ll see output like this: \> ping example.com Pinging example.com [185.27.134.??] with 32 bytes of data: Request timed out. Request timed out. Request timed out. Request timed out. Ping statistics for 185.27.134.??: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss), What should I do instead? The best …

---

_[View the full topic](https://forum.infinityfree.com/t/error-500-when-visiting-website/87449)._
