Can't login in to phpPgAdmin

ぐ巨炮叔叔 提交于 2019-12-11 09:43:26

问题


I have installed phpPdAdmin (5.1) using Yum on to a CentOS VPS. I have installed on the server Postgres 9.3.4 also using Yum. I am able to log in to a user account I have created using psql from terminal. However when I try and log in to phpPgAdmin it says loginFailed (also there is a red cross next to the server name on the left), I have changed the conf.d/phpPgAdmin file and added the line "Allow from all". I am at a loss, I am trying to log in to phpPgAdmin so I can start using the database system but I can't find any sites anywhere offering a solution or a troubleshooter, can anyone see my mistake or highlight common causes?


回答1:


You must be sure that the phpPgAdmin application is arriving at the PostgreSQL service (even if it is on the same server).

Check Apache HTTP or PostgreSQL logs for hints on that issue.

Commonly problems like that are solved by editing pg_hba.conf appropriately.




回答2:


It is necessary to change SELinux Boolean value. You need to run this command:

setsebool -P httpd_can_network_connect_db on


来源:https://stackoverflow.com/questions/24082258/cant-login-in-to-phppgadmin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!