memcache poblem

after using

apt-get install php5-apcu -y
sed -i “/‘version’/a ‘memcache.local’ => ‘\\OC\\Memcache\\APCu’,” /var/www/owncloud/config/config.php

owncloud is not loading anymore. Site is fully white…

I’ll need to see your config file. Please paste the following:

cat /var/www/owncloud/config/config.php
<?php $CONFIG = array ( 'instanceid' => 'oc1l9uvnxve1', 'passwordsalt' => '1d1i90BTbFWmTd0rxZWoTPFMmoNkn0', 'secret' => 'FPbOwmqGelaxS5Rmy90u087SzDn1nVDaECNiTLWP0q06bv77', 'trusted_domains' => array ( 0 => '', ), 'datadirectory' => '/mnt/usb_1/owncloud', 'overwrite.cli.url' => '', 'dbtype' => 'mysql', 'version' => '', 'memcache.local' => '\OC\Memcache\APCu', 'dbname' => 'owncloud', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'dbuser' => 'oc_soletto', 'dbpassword' => '78parpxikbovt0q4posd17vb0tbq4t', 'logtimezone' => 'UTC', 'installed' => true, );


Just tested on my XU4, seems Owncloud doesnt like the APCu that gets installed from ubuntu repo. I tested with php-apc works fine.

Install php-apc:

apt-get install php-apc -y

Edit /var/www/owncloud/config/config.php
replace ‘memcache.local’ => ‘\OC\Memcache\APCu’,
with ‘memcache.local’ => ‘\OC\Memcache\APC’,

restart services:

dietpi-services restart

APCu below version 4.0.6 is installed, for stability and performance reasons we recommend to update to a newer APCu version.

If you want to update, you will need to manually compile or use another repo to obtain the updated version.

Thx working now.

Another question.

Is there a way to upload biggerfiles. I even cant upload a 120mb file. Changed htacess so far. Under admin there stands only 2 gig possible.
Is there a workaround ? Thx

Yep, you just need to increase the PHP upload max size.

In the following files:


Change the var named:

upload_max_filesize =

example (500MB):

upload_max_filesize = 500M

Then restart services:

dietpi-services restart

You also need to change the following to 0, in both files.

post_max_size = 0

And in .htaccess (2G)

sed -i "/php_value upload_max_filesize/c\php_value upload_max_filesize 2G" /var/www/owncloud/.htaccess
sed -i "/php_value post_max_size/c\php_value post_max_size 2G" /var/www/owncloud/.htaccess

i was reading that there are problems with the 32 bit php version… which is causing problems when uploading big files.
For example a full hd video which needs for example 7 gb.

htacess overwrites the values of the php.ini ??? is that correct?

testing by only changing the htacess was a failure

Yep, there are memory/size limits on 32bit systems: Redirect Notice. Strange, its usually 3.5~GB for 32bit.

I’ve also updated the owncloud installation code. It will now set 2GB as the max upload file size. This will be available on v102 for new installs of owncloud.

Thx for help:-)
when is the new version out?

last post… might be interesting

Possibly at the end of the week, depends how much free time I have available to work on DietPi :slight_smile:

Thanks for the link, i’ll take a look when I can and see whats required to implement it.