Error connecting to the database: SQLSTATE[HY000] [2002] Permission denied
This post is also available in: English
One time, when I tried to install PolicyD WebIU into a CentOS, everything seems going right, but the webpage came up with the error Error connecting to the database: SQLSTATE[HY000] [2002] Permission denied

Solution: Stackoverlow
Disable CentOS SELinux: sudo setenforce 0