Post by nadygold » Mon Jan 15, 2018 9:34 pm

Hi,
I have installed oc through bitnami in google cloud server but while installing i got the following error.
I think there is some file permission issue. anyway following is error displayed.. I am using oc version 3.0.2
Warning: mysqli::__construct(): (HY000/2002): Connection refused in /opt/bitnami/apps/opencart/htdocs/system/library/db/mysqli.php on line 7Warning: DB\MySQLi::__construct(): Couldn't fetch mysqli in /opt/bitnami/apps/opencart/htdocs/system/library/db/mysqli.php on line 10Warning: DB\MySQLi::__construct(): Couldn't fetch mysqli in /opt/bitnami/apps/opencart/htdocs/system/library/db/mysqli.php on line 10

Thanks in advance
Nady

Newbie

Posts

Joined
Wed Oct 19, 2016 7:56 pm

Post by straightlight » Tue Jan 16, 2018 6:09 am

nadygold wrote:
Mon Jan 15, 2018 9:34 pm
Hi,
I have installed oc through bitnami in google cloud server but while installing i got the following error.
I think there is some file permission issue. anyway following is error displayed.. I am using oc version 3.0.2
Warning: mysqli::__construct(): (HY000/2002): Connection refused in /opt/bitnami/apps/opencart/htdocs/system/library/db/mysqli.php on line 7Warning: DB\MySQLi::__construct(): Couldn't fetch mysqli in /opt/bitnami/apps/opencart/htdocs/system/library/db/mysqli.php on line 10Warning: DB\MySQLi::__construct(): Couldn't fetch mysqli in /opt/bitnami/apps/opencart/htdocs/system/library/db/mysqli.php on line 10

Thanks in advance
Nady
Ensure to use the right database information from your config.php and admin/config.php files. Also ensure to set full database permissions from your host console.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

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

Post by nadygold » Tue Jan 23, 2018 7:32 pm

Hi,
I think there is some file or folder permission issues there.
my site worked fine but when i tried to install SSL on google cloud host then i got above error.
suggest whats should change. here is my folder permissions.
/admin --- 755
/catalog --- 755
/image --- 755
/storage --- 755
/system --- 755
config.php ---- 404
admin/config.php --- 404
Please help me

Newbie

Posts

Joined
Wed Oct 19, 2016 7:56 pm

Post by straightlight » Wed Jan 24, 2018 4:33 am

config.php and admin/config.php should be 0644. As for your SSL certificate issue, contact your host.

Dedication and passion goes to those who are able to push and merge a project.

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: Google [Bot], Semrush [Bot] and 518 guests