Codeigniter v2.2.6 : Unable to connect to your database server using the provided settings



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

source

Reply


Build A Site Info