配置OwnCloud支持大文件

Uploading big files > 512MB (as set by default)

It’s usefull to know limiting factors, that make it impossible to exceed the values given by the ownCloud-system:

Not outnumberable upload limits:

  • < 2GB on 32Bit OS-architecture
  • < 2GB with Server Version 4.5 or older
  • < 2GB with IE6 - IE8
  • < 4GB with IE9 - IE10

Other recommendable preconditions:

  • Make sure, that the latest version of php (at least 5.4.9) is installed
  • Disable user quota. This means: set the user quota of the account, you are currently logged in, to “unlimited”. This is important, because you possibly could not watch otherwise, whether the desired changes take effect.

Enabling uploading big files

Note: The order of the following steps is important! If you swap steps or substeps described below, the settings may fail.

Go to the admin section in the ownCloud-WebUI and do the following:

  • Under “File handling” set the Maximum upload size to the desired value (e.g. 16GB)
  • Klick the “save”-Button

Open the php.ini - file

  • Under Debian or Suse and their derivates this file lies at /etc/php5/apache2/php.ini
  • On Windows, you can find this file within C:/Program Files (x86)/PHP/PHP.ini

Do the following:

  • Set the following three parameters inside th php.ini to the same value as choosen inside the admin-section one step before:
  • upload_max_filesize = 16G (e.g., to stay consistent with the example value above)
  • post_max_size = 16G (e.g., to stay consistent with the example value above)
  • output_buffering = 16384 (e.g., to stay consistent with the example value above)

whereas the “output_buffering” has to be given in MegaBytes but as a plain figure (without size-units as ‘M’ or ‘G’)

These configurations have been prooven by test up to filesizes of 16 GigaBytes.

原文地址:点击打开链接
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值