HTTPD #PHP #PDO error caused by #SELinux
The HTTPD PHP PDO connect error "SQLSTATE[HY000] [2002] Permission denied" can be caused by SELinux on Centos & Red Hat 5 & 6
Quick Fix
See
- https://www.centos.org/docs/5/html/5.2/Deployment_Guide/sec-sel-enable-disable-enforcement.html
- https://www.centos.org/docs/5/html/5.2/Deployment_Guide/sec-sel-enable-disable.html