# 500 Internal Server Error

**URL:** <https://forum.infinityfree.com/t/500-internal-server-error/120733>\
**Category:** Hosting Support\
**Created:** [September 18, 2026, 6:35am UTC](https://forum.infinityfree.com/t/500-internal-server-error/120733 "2026-09-18T06:35:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eren-Tr](https://forum.infinityfree.com/letter_avatar/eren-tr/32/6_449c533f586939b6e5f246632a46421f.png) [@Eren-Tr](https://forum.infinityfree.com/u/Eren-Tr)\
**Post date:** [September 18, 2026, 6:35am UTC](https://forum.infinityfree.com/t/500-internal-server-error/120733/1 "2026-09-18T06:35:37Z")

</div>

### Website URL

### Error Message

PDOException: SQLSTATE[HY000] [2002] No route to host  
he failure happens at PDO::\_\_construct() when connecting to MySQL. Because the app initializes the database during bootstrap, the whole site returns 500 with an empty body.

What I already checked

App code on the server matches my local build (not a missing/broken PHP file).  
.env credentials look correct (DB\_HOST=[sql312.infinityfree.com](http://sql312.infinityfree.com), port 3306).  
I tested these hosts from a temporary PHP script on the same account:  
[sql312.infinityfree.com](http://sql312.infinityfree.com) → No route to host  
[sql312.byetcluster.com](http://sql312.byetcluster.com) → No route to host  
[sql312.epizy.com](http://sql312.epizy.com) → No route to host  
So this does not look like a wrong password or application bug. The web server simply cannot reach the MySQL host (network/routing issue).

Could you please check whether sql312 is currently having an outage or connectivity problem?

Thanks.

---

<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:** [September 18, 2026, 8:30am UTC](https://forum.infinityfree.com/t/500-internal-server-error/120733/2 "2026-09-18T08:30:41Z")

</div>

Since you haven’t shared your website URL, I cannot check, but based on your description, I think the issue is related to this one:

> **[Connection issue to MySQL servers | InfinityFree Status](https://status.infinityfree.com/issues/2026-09-18-database-issues/)**
>
> Investigating - We are investigating issues with database servers being unreachable from websites. Users report “No route to host” and “Connection timed out” errors. 
> (18 Sep - 07:26 UTC)

---

<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:** [September 25, 2026, 8:31am UTC](https://forum.infinityfree.com/t/500-internal-server-error/120733/3 "2026-09-25T08:31:12Z")

</div>

Closed on September 25, 2026, 8:31am UTC

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