FSSE8INFO
HTTPD #PHP #PDO error caused by #SELinux
  • FSSE8INFO
    • drafts
    • 2013
    • 2014
      • 01
      • 02
      • 03
      • 06
      • 07
      • 08
      • 09
      • 10
      • 11
        • 2015 12 09 httpd php pdo error
        • Moving MySQL or Percona db files to another disk
        • MySQL or @percona startup error caused by #SELinux
        • conversion of #xml with attributes to #json with attributes
    • 2016
    • 2017
    • 2018
    • 2019
    • 2020
    • 2021
    • 2022
    • 2023
    • 2024
    • 2025
    • 2026
  1. FSSE8INFO
  2. Posts
  3. 2015
  4. 12
  5. 2015 12 09 httpd php pdo error

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

# setenforce 0
# sestatus

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
apache httpd pdo php selinux
Previous
#python/WSGI applications quickstart #webdev
Next
Moving MySQL or Percona db files to another disk
Copyright © 2026 osde.info
Made with Zensical