View Single Post
  #4   (View Single Post)  
Old 28th February 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

I fixed my group permission error. It was easier to change the group for _redis with chpass(1), leave /etc/group unedited, and change the ownership of the /var/www/redis directory to www:www, leaving it 775.
Code:
$ pwd ; ls -l
/var/www
total 52
drwxr-xr-x   2 root  daemon   512 Oct  3 23:13 acme
drwxr-xr-x   2 root  daemon   512 Feb 27 17:24 bin
drwx-----T   2 www   daemon   512 Oct  3 23:13 cache
drwxr-xr-x   2 root  daemon   512 Oct  3 23:13 cgi-bin
drwxr-xr-x   3 root  daemon   512 Feb 27 17:24 conf
drwxr-xr-x   2 root  daemon   512 Feb 27 18:02 etc
drwxr-xr-x   4 root  daemon   512 Feb 27 17:40 htdocs
drwxr-xr-x   2 root  daemon   512 Feb 27 21:08 logs
drwxr-xr-x  15 root  daemon  1024 Feb 27 21:24 nextcloud
drwxrwxr-x   2 www   www      512 Feb 27 21:31 redis
drwxr-xr-x   2 root  daemon   512 Feb 27 21:26 run
drwx-----T   2 www   www     1024 Feb 27 21:31 tmp
drwxr-xr-x   5 root  daemon   512 Feb 27 17:26 usr
The socket file is _redis:www, permission 770:
Code:
$ ls -l redis/
total 0
srwxrwx---  1 _redis  www  0 Feb 27 21:31 redis.sock
Here is a diff of my redis.conf against the example:
Code:
$  diff -u /usr/local/share/examples/redis/redis.conf /etc/redis/redis.conf                                                                           
--- /usr/local/share/examples/redis/redis.conf  Mon Oct  2 15:15:46 2017
+++ /etc/redis/redis.conf       Tue Feb 27 21:23:14 2018
@@ -106,8 +106,8 @@
 # incoming connections. There is no default, so Redis will not listen
 # on a unix socket when not specified.
 #
-# unixsocket /var/run/redis/redis.sock
-# unixsocketperm 770
+ unixsocket /var/www/redis/redis.sock
+ unixsocketperm 770
 
 # Close the connection after a client is idle for N seconds (0 to disable)
 timeout 0

Last edited by jggimi; 28th February 2018 at 03:34 AM. Reason: typo
Reply With Quote