You are not logged in.

#1 2016-08-28 12:32:06

rtrsthkng
Member
Registered: 2016-08-28
Posts: 1

[SOLVED] ownCloud + Nginx - "Class 'Memcached' not found" error

Hello,

I have been trying to follow the Wiki page regarding ownCloud in order to set up ownCloud on my computer. However, when I try to access ownCloud's homepage (https://localhost/owncloud/), I only see a blank page.

I am a noob when it comes to server applications, so I might be making a silly mistake smile.

Nginx's log shows the following output:

PHP message: PHP Fatal error:  Uncaught Error: Class 'Memcached' not found in /etc/webapps/owncloud/config/config.php:958

(full output here, and nginx.conf here)

'nginx -t' shows that my configuration is correct.

What I have done so far:
Install the following packages:

  • nginx-mainline 1.11.3-1

  • php 7.0.10-1

  • php-fpm 7.0.10-1

  • php-apcu 5.1.5-1

  • php-apcu-bc 1.0.3-1

  • php-intl 7.0.10-1

  • php-mcrypt 7.0.10-1

  • owncloud 9.1.0-1

  • mariadb 10.1.16-2

I configured those packages as described in the Wiki. In particular, I enabled apcu, apc backwards compability and apcu cli in /etc/php/config.d/apcu.ini:

extension=apcu.so
apc.enable_cli=1
; install php-apcu-bc and enable apc.so for APC compatibility
extension=apc.so

I enabled APCu as the cache mechanism for ownCloud (/usr/share/webapps/owncloud/config/config.php)

'memcache.local' => '\OC\Memcache\APCu',

(full config here)

"php -i" shows that the APCu module is loaded, as well as APC backwards compability and cli:

apc
APC Compatibility => 1.0.3
APCu Version => 5.1.3
apcu
APCu Support => Enabled
APCu Debugging => Disabled
apc.coredump_unmap => Off => Off
apc.enable_cli => On => On
apc.enabled => On => On
apc.entries_hint => 4096 => 4096
apc.gc_ttl => 3600 => 3600
apc.mmap_file_mask => no value => no value
apc.preload_path => no value => no value
apc.serializer => php => php
apc.shm_segments => 1 => 1
apc.shm_size => 32M => 32M
apc.slam_defense => On => On
apc.smart => 0 => 0
apc.ttl => 0 => 0
apc.use_request_time => On => On
apc.writable => /tmp => /tmp

(full log here)

My research has shown that there are some issues when using APCu with PHP7 (such as this one). However, most of the solutions pointed at enabling APCu cli (which I have done) or installing php-apcu-bc. What confuses me is that Memcached sounds like a class that would be used by "memcached" not APCu, so it is possible that ownCloud is trying to use memcached instead of APCu.

I also tried not using any cache mechanism for ownCloud, but it seems that this is not possible.

I am not sure about what to try next. Any ideas?

Thanks in advance.

Edit: I gave up and switched to Apache and ownCloud works now. The original issue was not solved though.

Last edited by rtrsthkng (2016-09-03 10:18:36)

Offline

Board footer

Powered by FluxBB