# Could not connect to the database

**URL:** <https://forum.infinityfree.com/t/could-not-connect-to-the-database/107829>\
**Category:** Hosting Support\
**Created:** [March 24, 2025, 2:39pm UTC](https://forum.infinityfree.com/t/could-not-connect-to-the-database/107829 "2025-03-24T14:39:41Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![dan3008](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dan3008/32/53336_2.png) [@dan3008](https://forum.infinityfree.com/u/dan3008)\
**Post date:** [March 24, 2025, 7:56pm UTC](https://forum.infinityfree.com/t/could-not-connect-to-the-database/107829/9 "2025-03-24T19:56:42Z")

</div>

What admin panel are you trying to install?

Also for error 500, you’ll need to turn on full errors to see what the problem is:

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

> [@Http error 500](https://forum.infinityfree.com/t/http-error-500/49352/1):
>
> - Login to your control panel.
> - Go to Alter PHP Config.
> - Select the domain name you are trying to debug and click Alter PHP Directives.
> - Set “Display Errors” to “On” and click the Alter PHP Directives to save.

The problem isn’t with the server, it’ll be with the code being run. Trust me I know how frustrating it is.

---

_[View the full topic](https://forum.infinityfree.com/t/could-not-connect-to-the-database/107829)._
