Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot connect database when install.php #8

Open
limulidae opened this issue Nov 27, 2015 · 11 comments
Open

cannot connect database when install.php #8

limulidae opened this issue Nov 27, 2015 · 11 comments

Comments

@limulidae
Copy link

Database connection

Trying to open a Postgresql database connection :

Unable to connect to database! Please make sure the server is online and the database "" exists. Also 'postgresql.conf' and 'pg_hba.conf' must allow the user "" to open a connection to it on host "" port 0 to continue. See the error above for clues on what the problem may be.

Please go back and retry with correct values, or fix your server configuration.

Refresh
@first-leon
Copy link
Contributor

Yes, I confirm the bug!
ubuntu 14.04 AMD 64
PHP 5.5.9-1ubuntu4.14 (cli) (built: Oct 28 2015 01:34:46)

@first-leon
Copy link
Contributor

Befor run install.php, i change right to config.php (for www-data only read and exec).
I write manualy parameters in config.php.
And run install.php! It is work!

@bobble6956
Copy link

I leave permission 500 for config.php, it doesn't pass Folder Permissions check.
If leave it writable, got error when connecting to DB, how can I solve that?

@littlewine
Copy link

Hello everyone,
I am having the same bug as I am trying to install it on a raspberryPI.
It is weird that no matter what I type on the browser on install.php, the value seems to be written directly into the file, but on the next page, where the psql authentication fails, those values seem to be empty.

Thanks!

@Karenka91
Copy link

Hi,

i have the same Problem as littlewine.
I want to install wifidog on Debian 8.5, but Wifidog can't access the database.
I get the same message as limulidae.

When i look into the config.php all values are saved correctly.
I installed phppgadmin and I can connect to the database without problems.
So its neither a php nor a DB problem.
If there is any way to get wifidog to work with this bug pls tell us ;)

Thanks

@littlewine
Copy link

Simple but working work-around. I changed the config.php values manually to those created on postgresql and hardcoded them into install.php too.
I just wanted to see at the moment if I could pass that step and I did after all, now I am stuck on the next one (see the other open issues)! :)

@Karenka91
Copy link

even when i nail it into the install.php it does not work :(

@Karenka91
Copy link

ok now i figuered out that the file uses the username as port and the port as pw ---
i try it tommorow again by changing the right values

@mastrus
Copy link

mastrus commented Jan 27, 2017

@Karenka91 i'm also trying to install wifidog on debian 8.7 and I have the same issue:

Hi,

i have the same Problem as littlewine.
I want to install wifidog on Debian 8.5, but Wifidog can't access the database.
I get the same message as limulidae.

When i look into the config.php all values are saved correctly.
I installed phppgadmin and I can connect to the database without problems.
So its neither a php nor a DB problem.
If there is any way to get wifidog to work with this bug pls tell us ;)


after the spep of checking permission i run the command
sudo chmod g-w /var/www/wifidog-auth/wifidog/config.php

and the installation goes fine

@chenwq3
Copy link

chenwq3 commented Feb 22, 2017

I also encountered this problem.
Any solution found?

information

Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial
Linux odroid 3.10.104-131 #1 SMP PREEMPT Sat Feb 18 01:04:01 UTC 2017 armv7l armv7l armv7l GNU/Linux
wifidog-gateway & wifidog-auth are both pulled from github.com

@sousavarela
Copy link

hi,

I have the same error, I changed the version of postgres to PostgreSQL 9.3.25 and the first one worked.
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants