Wednesday, June 08, 2016

CentOS : SELinux : Web App Can't Connect to Networked Database

when browsing my newly set-up web apps on CentOS, been getting "Can't connect to database server (13)" even though i can get through using CLI.

yep, it's SELinux' security blocking your web app host from connecting to your network DB.
remember to allow this via...

setsebool -P httpd_can_network_connect_db on


... and don't you ever forget!

No comments:

Post a Comment

SSH : No matching host key type found. Their offer: ssh-rsa,ssh-dss

Got this while connecting to my mikrotik router via ssh   Unable to negotiate with <ip address> port <ssh port>: no matching hos...