Strange error with connection to mysql db.

Today i’ve tried to setup new software od my new dev server. Whatever i was doing i could’nt connect to external mysql server – but strangest thing was i was able to connect to it using console mysql command, and running php in console. After a little of googling, a find info about selinux blocking apache – as the dev server is centos. Site suggested that i should use command like this

/usr/sbin/setsebool httpd_can_network_connect true

But  it didnt fix the problem, then i have checked

getsebool -a | grep httpd

and it showed other config entry:


, and after setting it to true, everything work as it should.

Dodaj komentarz

Twój adres email nie zostanie opublikowany. Pola, których wypełnienie jest wymagane, są oznaczone symbolem *