ownCloud logo

After updating ownCloud to 8, the max file upload suddenly ignored my customizations efforts that were working flawlessly with ownCloud 7. Instead of the configured 4G, ownCloud would cap the max file upload size to 513M (a very odd looking number for the geeky eye). A quick phpinfo() revealed that both upload_max_filesize and post_max_size were locally set to 513M. To the best of my knowledge, the only way to locally override theses options was by using a .htaccess file but since my setup does not use Apache + mod_php but nginx + php-fpm instead (and thus should ignore .htaccess), I was rather confused.

there comes .user.ini

Well, since PHP 5.3.0 there is a file that get to override php.ini stuff: the .user.ini files. So, there are two solutions:

  1. remove ownCloud's .user.ini file and live in the fear of any update (re)installing it.
  2. disable those evil .user.ini files from php.ini:


; ...

; php.ini Options  ;
; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
;user_ini.filename = ".user.ini"

; To disable this feature set this option to empty value
user_ini.filename =

; ...