Page 1 of 1

Ubuntu Server: DB Error: Connection refused getting on web client from a remote station

Posted: Fri Feb 16, 2024 6:45 pm
by ritchie
Hi to all,
I am trying to install the phpMyFAQ within a virtual machine with a ubuntu server. No graphic interface.

When I am executing the setup of the phpmyFAQ on the webbrowser from my host system, I will
get the error "DB Error: Connection refused".

I have also install the "phpMyadmin" within the system, which is working fine without any problems.
I also created a database and the user has also the needed permissions, so far I can see.

Best regards
R.

Re: Ubuntu Server: DB Error: Connection refused getting on web client from a remote station

Posted: Sat Feb 17, 2024 10:43 am
by Thorsten
Hi,

are you sure, you're using the same credentials?

bye
Thorsten

Re: Ubuntu Server: DB Error: Connection refused getting on web client from a remote station

Posted: Sun Feb 18, 2024 8:18 am
by ritchie
Hi,

Yes. I tried it several times. You are talking about the user for the database connection.
Best regards
R.

Re: Ubuntu Server: DB Error: Connection refused getting on web client from a remote station

Posted: Sun Feb 18, 2024 10:13 am
by Thorsten
Hi,

is a network connection between the virtual machine running phpMyFAQ and the remote database successful?

bye
Thorsten

Re: Ubuntu Server: DB Error: Connection refused getting on web client from a remote station

Posted: Sun Feb 18, 2024 11:55 am
by ritchie
Hi,

yes. I can open the phpMyadmin without any problem from the same webbrowser which is also installed
on the server. Both are on the same computer, which is also a Ubuntu system as the host system and running a Ubuntu Server as a guest system.

I am running phpMyFAQ 3.2.5 with php 8.3.2
See attached picture for input procedure on the system. Based on the limitation of the attachments only step 1, 4 and 5.

Best regards
R.

Re: Ubuntu Server: DB Error: Connection refused getting on web client from a remote station

Posted: Sun Feb 18, 2024 5:48 pm
by Thorsten
Hi,

this error message is directly passed through from PHP. This error means that PHP code is not able to connect to the database. One of of the database connection parameters is incorrect: server address or username or password.

Is phpMyAdmin running on the same virtual machine?

bye
Thorsten

Re: Ubuntu Server: DB Error: Connection refused getting on web client from a remote station

Posted: Sun Feb 18, 2024 7:57 pm
by ritchie
Hello,

yes, it is running on the same machine.
See screen shot for access level. I used the same user for the phpmyadmin as for the phpmyFAQ web page.

Best regards
R.

Re: Ubuntu Server: DB Error: Connection refused getting on web client from a remote station

Posted: Wed Feb 21, 2024 5:08 pm
by ritchie
Hallo Zusammen,

gibt es den eine gute Installationsbeschreibung für phpMyFAQ für Ubuntu oder Windows. Dann installiere ich einfach das System nochmals neu.

Viele Grüße
R.

Re: Ubuntu Server: DB Error: Connection refused getting on web client from a remote station

Posted: Wed Feb 21, 2024 6:49 pm
by Thorsten
Hi,

ein Ubuntu mit Apache, PHP 8.x und MariaDB sollte out of the box funktionieren.

bye
Thorsten