PHP-FPM Database Connecting Issues

Michael Grotton

Registered
Feb 18, 2019
1
0
1
Presque Isle, Maine
cPanel Access Level
Root Administrator
When I enable FPM for an account, that accounts PHP can no longer connect to mysql using localhost. PDO reports this error:

SQLSTATE[HY000] [2002] No such file or directory

When I disable FPM, it is able to connect with no changes.

We have MariaDB 10.2. Everything is compiled through WHM/EasyApache.

Any ideas?