Problem connecting PHP site to external MariaDB
InfinityFree Forum [Unofficial]
May 20, 2026
I ran into something similar before and it turned out the external DB host was blocking remote connections by IP. Also make sure the MariaDB server is listening on the public interface and not just localhost. Testing the connection from a simple local PHP script first can help narrow down whether it’s a hosting restriction or a DB config issue.
Discussion in the ATmosphere