I\'m working with redis on my local machine so I dont really need to set up a password to connect to the server with my php client (I\'m using predis as a client). However, I\'
open redis configuration file
sudo nano /etc/redis/redis.conf
set passphrase
replace
# requirepass foobared
with
requirepass YOURPASSPHRASE
restart redis
redis-server restart