I have an existing owncloud server, but it's pretty basic SQLlite and all. I've started trying to get a totally new and clean install of owncloud with all MariaDB and mem cahcing.
I've been following this guide
https://www.tombrossman.com/blog/2016/install-owncloud-9-on-ubuntu-16.04/
However, I'm stuck at the memcache part. After editing the config.php file to include
'memcahce.local' => '\OC\Memcahce\Memcached',
'memcache.distributed' => '\OC\Memcached\Redis',
'memcache.locking' => '\OC\Memcahce\Redis',
'redis' =>
array (
'host' => 'localhost',
'port' => 6379,
'timeout' => 0,
'dbindex' => 0,
'password' => 'SOME PASSWORD',
),
I restart apache and owncloud doesn't seem to be working, I can run ./occ and I get this (instead of the menu full of options)
root@server:/var/www/owncloud# sudo -u www-data ./occ
An unhandled exception has been thrown:
Error: Class '\OC\Memcached\Redis' not found in /var/www/owncloud/lib/private/Memcache/Fa ctory.php:100
Stack trace:
0 /var/www/owncloud/lib/private/Server.php(333): OC\Memcache\Factory->__construct('55013 83efa7310f...', Object(OC\Log), '\OC\Memcache\Nu...', '\OC\Memcached\R...', '\OC\ Memcahce\Re...')
1 /var/www/owncloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\ {closure}(Object(OC\Server))
2 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(102): Pimple\Co ntainer->offsetGet('MemCacheFactory')
3 /var/www/owncloud/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleC ontainer->query('MemCacheFactory')
4 /var/www/owncloud/lib/private/Server.php(950): OC\ServerContainer->query('MemCacheFact ory')
5 /var/www/owncloud/lib/base.php(804): OC\Server->getMemCacheFactory()
6 /var/www/owncloud/lib/base.php(553): OC::registerAutoloaderCache()
7 /var/www/owncloud/lib/base.php(967): OC::init()
8 /var/www/owncloud/console.php(50): require_once('/var/www/ownclo...')
9 /var/www/owncloud/occ(11): require_once('/var/www/ownclo...')
Commenting out the lines in config.php the server works great, with them in, nothing.
just to make sure (because at this point i wasn't) i checked to see if memcached was there
root@server:/var/www/owncloud# systemctl status memcached.service
● memcached.service - memcached daemon
Loaded: loaded (/lib/systemd/system/memcached.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2016-07-22 21:47:48 EDT; 20min ago
...
Looks like it's there and working
and redis
root@server:/var/www/owncloud# systemctl status redis
● redis-server.service - Advanced key-value store
Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2016-07-22 21:47:52 EDT; 31min ago
...
I read the one post titled "Problems using redis with socket for filelocking" because that was the only other post about redis and memcahce, but it really didn't seem to help
Any help or advice, or other how-to's to follow would be great help. Thanks for the help in advance