PHP-FPM Can Not Connect to Mysql through LOCALHOST, only 127.0.0.1
This issue is affecting PHP-FPM only. If I have it enabled for an account, that account can't connect to databases using 'Localhost', I have to specify '127.0.0.1'
If I disable PHP-FPM for that account, it is able to connect to DB fine with no further configuration changes.
-
Hi @Mike Grotton That seems odd, what's in the .htaccess for the domain? Also, have you discussed this issue with your provider? It's possible they have some configurations that are preventing this from working as intended. 0 -
What is in /etc/hosts It would seem to me that php-fpm is not reading /etc/hosts or there is something misconfigured in /etc/hosts 0 -
What is in /etc/hosts It would seem to me that php-fpm is not reading /etc/hosts or there is something misconfigured in /etc/hosts
My assumption as well but after looking at the cPanel Access Level for him I believe he would need to go through his provider for assistance with this.0
Please sign in to leave a comment.
Comments
3 comments