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…
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:
cat /var/www/owncloud/config/config.php
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:
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:
/etc/php5/apache2/php.ini
/etc/php5/cli/php.ini
Change the var named:
upload_max_filesize =
example (500MB):
upload_max_filesize = 500M
Then restart services:
dietpi-services restart
EDIT:
You also need to change the following to 0, in both files.
post_max_size = 0
EDIT 2:
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?
http://stackoverflow.com/questions/4614147/uploading-a-file-larger-than-2gb-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.