PHP permission denied on connection to /tmp/redis.socket
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.
Please sign in to leave a comment.
Comments
0 comments