Large file support - Owncloud

Status
Not open for further replies.

norskman

Contributor
Joined
Sep 28, 2012
Messages
149
The owncloud Admin manual says to edit the file Php.ini to get large file support.

I can't find Php.ini. where is it located in the jail?

The manual says this file needs to be edited to allow files larger than 500mb in the owncloud file store.
 
D

dlavigne

Guest
It will either be in /usr/local/etc or a subdirectory thereof.
 

norskman

Contributor
Joined
Sep 28, 2012
Messages
149
thanks for the reply. I looked I don't see it there.

Does anyone know - or else how to allow large downloads >500mb?
 
D

dlavigne

Guest
Try this within the jail:

Code:
/usr/libexec/locate.updatedb
locate php.ini
 

N00b

Explorer
Joined
May 31, 2013
Messages
83
Have you installed the owncloud plugin? In that case the ini file is located in :
/usr/pbi/owncloud-amd64/etc and is possibly php.ini-production that is being used.

If you have the installed the newer version of owncloud (with https support) you will also have to change the variables php_value upload_max_filesize and php_value post_max_size in file .htaccess in directory /usr/pbi/owncloud-amd64/www/owncloud.

You could possibly also encounter the owncloud5 bug reported here. http://forum.owncloud.org/viewtopic.php?f=3&t=3058; there is a workaround described in this post: http://forum.owncloud.org/viewtopic.php ... t=10#p7773.

The file local.php is located here - /usr/pbi/owncloud-amd64/www/owncloud/lib/files/storage
 

norskman

Contributor
Joined
Sep 28, 2012
Messages
149
I found the file and modified the php.ini_production - this made no difference. Now i will look at .htaccess and see if that fixes it.

I was following the manual - but thats like it is incorrect.

Will report back on this shortly.
 

norskman

Contributor
Joined
Sep 28, 2012
Messages
149
the first way worked.
editing the .htaccess file.

I now need to do a certificate.....

Many thanks - its working though
 

raidflex

Guru
Joined
Mar 14, 2012
Messages
531
I still have this problem with files larger then 2GB. Even after trying all of these settings. When I set the max_upload to 0 I receive the 0B problem and it will not let me upload any files. If I change the max_upload to a set size I can then upload larger files then the default 512MB size but not above 2GB. The link in this thread to fix the 0B upload issue does not work either.

According to this bug report, the 2GB limitation issue has been resolved. https://bugs.php.net/bug.php?id=44522
 

Osiris

Contributor
Joined
Aug 15, 2013
Messages
148
Sorry for necro'ing this, but had to adapt this:
vi /usr/pbi/owncloud-amd64/etc/php.ini
Code:
apc.enable_cli=1
php_value upload_max_filesize = 216G
php_value post_max_size = 216G
vi /usr/pbi/owncloud-amd64/www/owncloud/.htaccess
Code:
...
  php_value upload_max_filesize 216G
  php_value post_max_size 216G...

Edit .htaccess for both IfModule sections
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Sorry for necro'ing this, but had to adapt this:
vi /usr/pbi/owncloud-amd64/etc/php.ini
Code:
apc.enable_cli=1
php_value upload_max_filesize = 216G
php_value post_max_size = 216G
vi /usr/pbi/owncloud-amd64/www/owncloud/.htaccess
Code:
...
  php_value upload_max_filesize 216G
  php_value post_max_size 216G...

Edit .htaccess for both IfModule sections
I don't think you should edit the .htaccess file. I think when you change the upload value in the owncloud admin interface it edits the htaccess for you.
 
Status
Not open for further replies.
Top