I'm not sure if it's the same problem but here goes:
I just did a fresh install of RH 7.0 with apache, php, and mysql.
I had the same problem.
All I had to do was change the permissions on my MySQL directory (in your case "/var/lib/mysql" so that my apache user (the user/group that apache runs as) has access.
check to make sure it also changes permissions on the mysql.sock file. That's the important one.
I believe apache only needs read (maybe execute) access.
chmod 755 /var/lib/mysql
(that's from memory, but you know the gist of the problem)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.