Redis can be configured to use a unix socket:

# installing redis

apt-get install -y redis-server php5-redis

# configure it to use unix socket

mkdir /var/run/redis

chown redis.redis /var/run/redis

sed -i 's_# unixsocket /tmp/redis.sock_unixsocket /var/run/redis/redis.sock_' 
/etc/redis/redis.conf

sed -i 's_# unixsocketperm 700_unixsocketperm 0777_' /etc/redis/redis.conf

service redis-server restart

service apache2 restart

# now setup oc to use it ... requires sed because it uses an array

su www-data -s /bin/bash -c 'php occ config:system:set redis --value FIXME'

sed -i "s_'FIXME'_['host' => '/var/run/redis/redis.sock','port' => 0,'timeout' => 
0.0]_" config/config.php

su www-data -s /bin/bash -c 'php occ config:system:set memcache.local --value 
"\OC\Memcache\Redis"'

su www-data -s /bin/bash -c 'php occ config:system:set memcache.locking --value 
"\OC\Memcache\Redis"'

su www-data -s /bin/bash -c 'php occ config:system:set filelocking.enabled 
--value true'

Hope this helps

Jörn

Am 07.12.2015 um 12:02 schrieb Carlo Glinetzki:
Hi,

I have deinstalled redis again after I found out that my root's authorized_keys-file was overwritten by redis and after some searching I found following articles:
http://stackoverflow.com/questions/33692230/redis-writing-to-ssh-authorized-keys/33693810#33693810
http://antirez.com/news/96
http://www.redis.io/topics/quickstart#securing-redis
My server is publicly accessible and the risk might be to high to have installed an unsecured server.
I went back to APCU-memcache


--
/Mfg/
/*Carlo Glinetzki*/
Beppo
http://glini.net/vcard/
http://facebook.com/CGThailand.lu

Am 07.12.2015 um 15:35 schrieb Carlo Glinetzki:
Hi
no password, no specific config for redis
thanks for the answer

--
/Mfg/
/*Carlo Glinetzki*/
Beppo
http://glini.net/vcard/
http://facebook.com/CGThailand.lu

Am 07.12.2015 um 12:31 schrieb Chris:
Hi,

any chances that you have changed the redis config to require a password?
That will be available starting with oC 8.2.2:

https://github.com/owncloud/core/issues/20937



--
View this message in 
context:http://owncloud.10557.n7.nabble.com/Problem-with-Redis-memcache-server-tp16196p16197.html
Sent from the Users mailing list archive at Nabble.com.
_______________________________________________
User mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/user




_______________________________________________
User mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/user



_______________________________________________
User mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/user

--
Dr. Jörn Friedrich Dreyer
Solutions Architect
ownCloud GmbH

Your Data, Your Cloud, Your Way!

ownCloud GmbH, GF: Markus Rex, Holger Dyroff, Frank Karlitschek
Schloßäckerstrasse 26a, 90443 Nürnberg, HRB 28050 (AG Nürnberg)

_______________________________________________
User mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/user

Reply via email to