No such host is known

Hello, so I have a problem with the database connection, it says host not found.
Can you help me solve this problem, Thanks in advance

Error Message

CodeIgniter\Database\Exceptions\DatabaseException
Unable to connect to the database.
Main connection [MySQLi]: php_network_getaddresses: getaddrinfo for sql112.infinityfree.com failed: No such host is known.

Other Information

Are you trying to connect from within the InfinityFree servers? If not, you are running into this limitation:

7 Likes

oh… I see, now I understand. then do you mind helping me with htaccess settings too? because my InfinityFree host server currently only displays the CloudLinux Test Page. Thanks btw

Here the url : http://kepin.rf.gd/

Please refer to this guide

7 Likes

oh yeah, forgot to mention, I’m using Codeigniter 4, and the controller is Home, so the index url should be
http://kepin.rf.gd/Home
but currently what is showing is 500 internal server errors

I’ve tried following the guide you gave, but it seems there’s something I haven’t set yet, so I still can’t open my website and when I opened kepin.rf.gd/public
I get an error , “kepin.rf.gd is currently unable to handle this request.”

Please read

6 Likes

Thank you!!, finally I know what causes this website to have problems, from what I read, the problem is that one of my php files, “autoload_static.php” exceeds 1MB, which will be immediately deleted by the server system.

Eyyyy… Thank you so much, The problem was solved !!!

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