When you face an error Uncaught RedisException: Permission denied in your PHP code, you will need to check if that is working normally in the command line but happening in the web page. If it is, that is 100% caused by your linux security policy. In that case, you will need to turn SELinux policy off that located at /etc/selinux/config.

The followings are the example of Uncaught RedisException: Permission denied error

<br />
<b>Fatal error</b>:  Uncaught RedisException: Permission denied in /pub/production/live.its-newid.net/live/newid_001/newid_plus/index.m3u8:31
Stack trace:
#0 /pub/live/newid_plus/index.php(31): Redis->connect('', 6379)
#1 /pub/live/newid_plus/index.php(136): getM3u8Content('./main.php')
#2 {main}
  thrown in <b>/pub/live/newid_plus/index.php</b> on line <b>31</b><br />

You can get information to disable SELinux policy at http://qsok.com/display/KB/Turn+SELinux+off+on+CentOS