# My website displays HTTP Error 500

**URL:** <https://forum.infinityfree.com/t/my-website-displays-http-error-500/84062>\
**Category:** Hosting Support\
**Created:** [October 7, 2023, 12:01pm UTC](https://forum.infinityfree.com/t/my-website-displays-http-error-500/84062 "2023-10-07T12:01:43Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mouhamad](https://forum.infinityfree.com/letter_avatar/mouhamad/32/5_5575768a8748004e209b776fc1b2916d.png) [@Mouhamad](https://forum.infinityfree.com/u/Mouhamad)\
**Post date:** [October 7, 2023, 12:01pm UTC](https://forum.infinityfree.com/t/my-website-displays-http-error-500/84062/1 "2023-10-07T12:01:43Z")

</div>

I checked my code and it was working just fine, but now it’s giving me 500 and doesn’t open the website

---

<div class="post-metadata">

**Author:** ![ChrisPAR](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/chrispar/32/8743_2.png) [@ChrisPAR](https://forum.infinityfree.com/u/ChrisPAR)\
**Post date:** [October 7, 2023, 12:50pm UTC](https://forum.infinityfree.com/t/my-website-displays-http-error-500/84062/2 "2023-10-07T12:50:26Z")

</div>

Please enable “Display Errors”:

> [@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…

---

<div class="post-metadata">

**Author:** ![Mouhamad](https://forum.infinityfree.com/letter_avatar/mouhamad/32/5_5575768a8748004e209b776fc1b2916d.png) [@Mouhamad](https://forum.infinityfree.com/u/Mouhamad)\
**Post date:** [October 7, 2023, 12:09pm UTC](https://forum.infinityfree.com/t/my-website-displays-http-error-500/84062/3 "2023-10-07T12:09:47Z")

</div>

I still have the same problem, my website is not working, and my code was working just fine

---

<div class="post-metadata">

**Author:** ![anon42008019](https://forum.infinityfree.com/letter_avatar/anon42008019/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon42008019](https://forum.infinityfree.com/u/anon42008019)\
**Post date:** [October 7, 2023, 12:34pm UTC](https://forum.infinityfree.com/t/my-website-displays-http-error-500/84062/4 "2023-10-07T12:34:28Z")

</div>

Please read the article above.

---

<div class="post-metadata">

**Author:** ![ChrisPAR](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/chrispar/32/8743_2.png) [@ChrisPAR](https://forum.infinityfree.com/u/ChrisPAR)\
**Post date:** [October 7, 2023, 12:51pm UTC](https://forum.infinityfree.com/t/my-website-displays-http-error-500/84062/5 "2023-10-07T12:51:23Z")

</div>

What is your website’s URL? Can you share more information?  
Have you enabled Display Errors as suggested in the article?

Also please do not hijack other people’s topics or post in the Knowledge Base article for an issue, but rather make your own post.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [October 7, 2023, 2:04pm UTC](https://forum.infinityfree.com/t/my-website-displays-http-error-500/84062/6 "2023-10-07T14:04:24Z")

</div>

We are currently upgrading all servers from PHP 7.4 to PHP 8.2. If your website’s code is not compatible with PHP 8.2, it may break. To fix it, you’ll need to update your website software to a version that supports PHP 8.2. And if you wrote the code yourself, you’ll have to update the code yourself too.

---

<div class="post-metadata">

**Author:** ![Mouhamad](https://forum.infinityfree.com/letter_avatar/mouhamad/32/5_5575768a8748004e209b776fc1b2916d.png) [@Mouhamad](https://forum.infinityfree.com/u/Mouhamad)\
**Post date:** [October 7, 2023, 6:27pm UTC](https://forum.infinityfree.com/t/my-website-displays-http-error-500/84062/7 "2023-10-07T18:27:26Z")

</div>

My website is [ghassan-hamadani.epizy.com](http://ghassan-hamadani.epizy.com)

And my code is Laravel but it should work fine with php 8

---

<div class="post-metadata">

**Author:** ![ChrisPAR](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/chrispar/32/8743_2.png) [@ChrisPAR](https://forum.infinityfree.com/u/ChrisPAR)\
**Post date:** [October 7, 2023, 8:08pm UTC](https://forum.infinityfree.com/t/my-website-displays-http-error-500/84062/8 "2023-10-07T20:08:13Z")

</div>

Did you enable “Display Errors” and any debug settings your software may have?

---

<div class="post-metadata">

**Author:** ![Mouhamad](https://forum.infinityfree.com/letter_avatar/mouhamad/32/5_5575768a8748004e209b776fc1b2916d.png) [@Mouhamad](https://forum.infinityfree.com/u/Mouhamad)\
**Post date:** [October 7, 2023, 8:24pm UTC](https://forum.infinityfree.com/t/my-website-displays-http-error-500/84062/9 "2023-10-07T20:24:28Z")

</div>

Yes, and the website is stil giving me page not working

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [October 8, 2023, 11:01am UTC](https://forum.infinityfree.com/t/my-website-displays-http-error-500/84062/10 "2023-10-08T11:01:29Z")

</div>

Do you have more information about this? It would help if we had an actual PHP error message to troubleshoot this.

Laravel overrides the server’s error handling. You may be able to find the actual error message in the error logs in the `storage/logs` folder of your Laravel installation, or enable debug mode to have the error messages shown in the browser: [Configuration - Laravel 10.x - The PHP Framework For Web Artisans](https://laravel.com/docs/10.x/configuration#debug-mode)

---

<div class="post-metadata">

**Author:** ![Mouhamad](https://forum.infinityfree.com/letter_avatar/mouhamad/32/5_5575768a8748004e209b776fc1b2916d.png) [@Mouhamad](https://forum.infinityfree.com/u/Mouhamad)\
**Post date:** [October 8, 2023, 2:23pm UTC](https://forum.infinityfree.com/t/my-website-displays-http-error-500/84062/11 "2023-10-08T14:23:35Z")

</div>

![Screenshot (164)](https://forum-cdn.infinityfree.net/original/3X/b/7/b7fd07f69e097ac244615f0cd0ec9a0f83ad7dbf.png)  
this is what I get when trying to open the website [http://ghassan-hamadani.epizy.com/?i=1](http://ghassan-hamadani.epizy.com/?i=1)

---

<div class="post-metadata">

**Author:** ![ChrisPAR](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/chrispar/32/8743_2.png) [@ChrisPAR](https://forum.infinityfree.com/u/ChrisPAR)\
**Post date:** [October 8, 2023, 2:37pm UTC](https://forum.infinityfree.com/t/my-website-displays-http-error-500/84062/12 "2023-10-08T14:37:16Z")

</div>

Did you do this?

> [@Admin](#):
>
> Laravel overrides the server’s error handling. You may be able to find the actual error message in the error logs in the `storage/logs` folder of your Laravel installation, or enable debug mode to have the error messages shown in the browser: [Configuration - Laravel 10.x - The PHP Framework For Web Artisans](https://laravel.com/docs/10.x/configuration#debug-mode)

---

<div class="post-metadata">

**Author:** ![Mouhamad](https://forum.infinityfree.com/letter_avatar/mouhamad/32/5_5575768a8748004e209b776fc1b2916d.png) [@Mouhamad](https://forum.infinityfree.com/u/Mouhamad)\
**Post date:** [October 8, 2023, 4:03pm UTC](https://forum.infinityfree.com/t/my-website-displays-http-error-500/84062/13 "2023-10-08T16:03:34Z")

</div>

yes I checked the logs in the storage but nothing there, the code in being load, also I have another website and it’s doing the same thing

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [October 9, 2023, 6:00pm UTC](https://forum.infinityfree.com/t/my-website-displays-http-error-500/84062/14 "2023-10-09T18:00:24Z")

</div>

I’m sorry, but I don’t know what else I can do for you right now. A HTTP ERROR 500 means your application code is crashing. Usually, either enabling display\_errors, enabling debug mode within the application or checking the built-in error logs should say more, but it appears that none of these things are working for your site.

Unfortunately, this means we have just as little information as to why your site breaks as you do. And the only way to find what’s broken is by stepping through the code or by trial and error. I’m aware that that’s a time consuming and annoying way to have to find the issue, but it’s your website, so you are the best person to find any problem in the code.

If you can get an actual error message, we may be able to help you. And if you can find any problem on the server that is causing your site to behave like this, we could certainly take a look.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [October 16, 2023, 6:00pm UTC](https://forum.infinityfree.com/t/my-website-displays-http-error-500/84062/15 "2023-10-16T18:00:58Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
