Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

PHP-FPM Database Connecting Issues

Discussion in 'EasyApache' started by Michael Grotton, Feb 18, 2019.

Tags:
  1. Michael Grotton

    Michael Grotton Registered

    Joined:
    Feb 18, 2019
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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?
     
  2. Eminds

    Eminds Well-Known Member

    Joined:
    Nov 10, 2016
    Messages:
    312
    Likes Received:
    28
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    keeping the FPM enabled for the account and while browsing website check the mysql error logs and that will give you an idea of whats happening
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,328
    Likes Received:
    2,157
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Michael Grotton,

    Can you open a support ticket so we can take a closer look at the affected system and see what's happening? You can post the ticket number here and we'll update this thread with the outcome.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. 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.
    Dismiss Notice