Codeigniter+Postgresql+Centos: Unable to connect to your database server using the provided settings
Channel:
Subscribers:
4,970
Published on ● Video Link: https://www.youtube.com/watch?v=fm1iv-SCiA4
I'm using codeigniter v.2.2.6, postgresql9.5 and centos 7.
When i trying to connect to the database with CI, it showing 'Unable to connect to your database server using the provided settings'.
but, when i trying to connect with pgadmin, it seem works well.. it's connected to the database.
So, i searching for the solution.. then i got it. The solution is allowing HTTP in SELINUX with script :
sudo setsebool -P httpd_can_network_connect 1
then.. i refresh browser again.. and worked. no error.
problem solved. n_n
Other Videos By Ambar Hasbiyatmoko
Tags:
centos
browser
unable
database
postgresql
pgadmin
linux
mozilla
connect
localhost
config
codeigniter
ci
framework
selinux
server
http