memcache poblem Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
soletto

memcache poblem

Post by soletto »

hey
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.....
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: memcache poblem

Post by Fourdee »

soletto wrote:hey
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:

Code: Select all

cat /var/www/owncloud/config/config.php
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
soletto

Re: memcache poblem

Post by soletto »

<?php
$CONFIG = array (
'instanceid' => 'oc1l9uvnxve1',
'passwordsalt' => '1d1i90BTbFWmTd0rxZWoTPFMmoNkn0',
'secret' => 'FPbOwmqGelaxS5Rmy90u087SzDn1nVDaECNiTLWP0q06bv77',
'trusted_domains' =>
array (
0 => 'soletto.ddns.net',
),
'datadirectory' => '/mnt/usb_1/owncloud',
'overwrite.cli.url' => 'https://soletto.ddns.net/owncloud',
'dbtype' => 'mysql',
'version' => '8.1.4.2',
'memcache.local' => '\OC\Memcache\APCu',
'dbname' => 'owncloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'oc_soletto',
'dbpassword' => '78parpxikbovt0q4posd17vb0tbq4t',
'logtimezone' => 'UTC',
'installed' => true,
);
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: memcache poblem

Post by Fourdee »

Ok,

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:

Code: Select all

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:

Code: Select all

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.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
soletto

Re: memcache poblem

Post by soletto »

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
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: memcache poblem

Post by Fourdee »

soletto wrote: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:

Code: Select all

/etc/php5/apache2/php.ini
/etc/php5/cli/php.ini
Change the var named:

Code: Select all

upload_max_filesize =
example (500MB):

Code: Select all

upload_max_filesize = 500M
Then restart services:

Code: Select all

dietpi-services restart
EDIT:
You also need to change the following to 0, in both files.

Code: Select all

post_max_size = 0
EDIT 2:
And in .htaccess (2G)

Code: Select all

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
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
soletto

Re: memcache poblem

Post by soletto »

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
Last edited by soletto on Mon Nov 16, 2015 8:57 pm, edited 1 time in total.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: memcache poblem

Post by Fourdee »

soletto wrote: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.
Yep, there are memory/size limits on 32bit systems: https://doc.owncloud.org/server/7.0/adm ... by-default. 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.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
soletto

Re: memcache poblem

Post by soletto »

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

http://stackoverflow.com/questions/4614 ... -using-php

last post..... might be interesting
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: memcache poblem

Post by Fourdee »

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

http://stackoverflow.com/questions/4614 ... -using-php

last post..... might be interesting
Possibly at the end of the week, depends how much free time I have available to work on DietPi :)

Thanks for the link, i'll take a look when I can and see whats required to implement it.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply