title: Troubleshooting "Permission denied" when attempting to connect to Redis from PHP script
body: <p>Port 6379 is open on the server, and I can successfully run <code>telnet localhost 6379</code> in SSH.</p>
  
  <p>I tried both Predis/phpredis client library in PHP, but it still does not work:</p>
  
  <ul>
  <li>Predis gives "Permission denied" error when opening socket to 6379.</li>
  <li>phpredis gives "redis server went away".</li>
  </ul>