Post by hannoeo » Sun Mar 28, 2021 3:15 am

I´m getting stuck at part 3 of the installation, I´ve had several different error codes depending on what ill input.

I am not expert what so ever and really really crappy when it comes to databases and such but i think there is something missing from the config.php because it´s all blank..

i did re-name the config-dist.php to config.php and the config-dist.php was also empty... Isn´t those configs supposed to connect the DB?

This is the error message displayed: mysqli::__construct(): (HY000/1698): Access denied for user 'root'@'localhost' in /var/www/html/opencart/system/library/db/mysqli.php on line 7

changing user from root to username and localhost to hostname will display this error:

mysqli::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/opencart/system/library/db/mysqli.php on line 7Warning: mysqli::__construct(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/opencart/system/library/db/mysqli.php on line 7


here is line 7 aswell, from mysqli.php: $this->connection = new \mysqli($hostname, $username, $password, $database, $port);

I'm not really seeing the problem at all here. Please help me out :)

Newbie

Posts

Joined
Sun Mar 28, 2021 3:00 am

Post by ADD Creative » Sun Mar 28, 2021 9:16 pm

Using localhost should be correct unless you database is remotely hosted. You just need your correct username and password.

www.add-creative.co.uk


Active Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by EvolveWebHosting » Mon Mar 29, 2021 9:46 pm

If the config.php files are blank after running yourdomain.com/install then the install did not work properly. Make sure you have all files properly uploaded, with the correct file permissions and try running the install process again.

Image
50% Off SSD Shared Hosting w/ cPanel
Detailed guide on how to install Opencart


User avatar
Active Member

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA

Post by straightlight » Mon Mar 29, 2021 10:16 pm

OC version.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by EvolveWebHosting » Thu Apr 01, 2021 10:54 am

You might also want to consider using Softaculous if this is your first time installing Opencart. It may be easier to get it setup and see what the config.php files should look like.

Image
50% Off SSD Shared Hosting w/ cPanel
Detailed guide on how to install Opencart


User avatar
Active Member

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA

Post by straightlight » Thu Apr 01, 2021 8:15 pm

To see what the config.php files should look like: viewtopic.php?f=199&t=198781&p=699560#p699560

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 9 guests