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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,782
    Likes Received:
    1,712
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page