Database fails on installation

Hi..

Long time since I was here. I thought I give it a try again.

But.. I have tried litecart installation numerous times but it's not going my way..

Here's the message I get..



Checking PHP version... 7.4.30 [OK]

Checking for PHP extensions... [Warning] Some important PHP extensions are missing (apcu). It is recommended that you enable them in php.ini.

Checking available PHP functions... [OK]

Checking PHP display_errors... On [OK]

Checking $_SERVER["DOCUMENT_ROOT"]... /www/**********.**.**/public_html [OK]

Checking for updates...

Connecting to MySQL server on localhost...
Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /www/**********.**.**/public_html/includes/library/lib_database.inc.php on line 26

Fatal error: Could not connect to database: 2002 - No such file or directory in /www/**********.**.**/public_html/includes/library/lib_database.inc.php on line 27```

Any ideas..?

Thx..
tim

Welcome back! :)
Try 127.0.0.1 instead of localhost for local host.

Yeah!

It was neither..
The host had named their localhost.. :/

tim

[quote]The host had named their localhost.. :/[/quote]
That indicates that the database is not served on the local host machine, by a slight cost of connection and transfer delays.

This thread has been closed due to long inactivity. Posting to it is not possible.
View code on GitHub