Apache/PHP can't connect to socket /var/lib/mysql/mysql.sock because the context label has changed.
Issue
- With SELinux enabled, trying to connect to MariaDB 10.1 from PHP's PDO/MySQLNB module fails with errors.
Environment
- Red Hat Enterprise Linux Server 6.x
- Red Hat Software collections 2.3
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
