# isn't a single line comment in php, // is
Have a look at the FAQ, it contains a TCP and socket example; https://xenforo.com/community/resources/redis-cache-by-xon.5562/field?field=faq
I can't particularly help with socket permissions as this is highly depended on server configuration (ie is the socket file path that php sees the same as redis, permissions, selinux/apparmor weird ****, etc)
Have a look at the FAQ, it contains a TCP and socket example; https://xenforo.com/community/resources/redis-cache-by-xon.5562/field?field=faq
I can't particularly help with socket permissions as this is highly depended on server configuration (ie is the socket file path that php sees the same as redis, permissions, selinux/apparmor weird ****, etc)