Hi,
I am getting "Connection failed" when trying to logon to a2billing as root with changepassword. I went through the forum and there are some people with the same issue but looks like that the root cause of mine is the fact that after hitting "LOGIN" php tries to connect to PostgreSQL instead to mysql:
/var/log/httpd/error_log
[Thu Apr 05 08:40:15 2012] [error] [client 95.215.xxx.xxx] PHP Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Connection refused\n\tIs the server running on host "localhost" and accepting\n\tTCP/IP connections on port 5432?\ncould not connect to server: Connection refused\n\tIs the server running on host "localhost" and accepting\n\tTCP/IP connections on port 5432? in /usr/local/src/a2billing/common/lib/adodb/drivers/adodb-postgres64.inc.php on line 686, referer:
http://wan1.xxx.com/a2billing/admin/Public/index.phpIt can not connect because PostgreSQL does not exist - I have mysql instead.
I can connect to mysql with credentials from /etc/a2billing.conf (it is set to use mysql) , I can ping localhost and during the installation all tables have been created successfully.
Where in php or a2billing can I find the setting which defines which database to use?