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 permission denied on connection to /tmp/redis.socket

Discussion in 'General Discussion' started by asolopovas, Apr 1, 2018.

Tags:
  1. asolopovas

    asolopovas Registered

    Joined:
    Mar 5, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi everyone,

    I have installed redis on my Cpanel Centos 6.9 VPS and successfully connected to it via tcp. I wanted to share redis.socket connection instead of tcp with several users on my vps but failing to do so as php throws an error with permission denied.

    I have already tried to set permission to /tmp/redis.socket 755, even to 777, though I understand that there is no point in that as it only adds write permission.

    I have tried to run service as redis user and relocate socket location to /home/redis/redis.socket.

    But no matter what I try it throws permission denied error when trying to access redis.socket by either of users.

    I also understand that giving access to socket of single instance to multiple users may cause problems, but I do manage most of the sites on my vps, so it should not be an issue.

    Could you please help me. Thanks.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,408
    Likes Received:
    1,953
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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