Unable to connect to Postgres via PHP but can connect from command line and PgAdmin on different machine

旧巷老猫 提交于 2019-11-29 07:43:24

OK... Answered... Was a problem with SELinux. Needed to run the following....

setsebool -P httpd_can_network_connect_db on

Also if you need to check if SELinux is causing issues it can be turned off with the following

setenforce 0

Then once finished

setenforce 1

Anyways, done... onwards!

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