Mod_php7.c reference missing in .htaccess #21146

Gummikavalier opened this Issue Dec 11, 2015 · 4 comments


None yet

7 participants


Version ownCloud 8.2.1 with PHP7 and httpd/apache.

[owncloud root]/.htaccess does not have reference for mod_php7.c module.

Because of this the following parameters under ifModule are skipped:

<IfModule mod_php5.c>
php_value upload_max_filesize 18G
php_value post_max_size 18G
php_value memory_limit 512M
php_value mbstring.func_overload 0
php_value always_populate_raw_post_data -1
php_value default_charset 'UTF-8'
php_value output_buffering 0
<IfModule mod_env.c>
SetEnv htaccessWorking true

This can be verified under admin console where the upload limit value does not change according to php_value upload_max_filesize and php_value post_max_size values in .htaccess.
In addition to this, admin page complains about the lack of privileges and the value field is greyed out.

Replacing mod_php5.c string with mod_php7.c fixes the problem.

@DeepDiver1975 DeepDiver1975 added this to the 9.0-current milestone Dec 11, 2015
@l3iggs l3iggs added a commit to greyltc/docker-owncloud that referenced this issue Jan 6, 2016
@l3iggs l3iggs fix for php7 0af574d
@cmonteroluque cmonteroluque modified the milestone: 9.1-next, 9.0-current Feb 22, 2016
@PVince81 PVince81 modified the milestone: 9.1-next, 9.0-current Feb 23, 2016
@LukasReschke LukasReschke self-assigned this Mar 15, 2016

Patch is at #23250

Wikinaut commented Apr 2, 2016

I am interested in learning soon, whether this patch fixes the upload-size-problem also for self-compiled PHP 7 (like on my servers).

@greyltc greyltc referenced this issue in greyltc/docker-owncloud Apr 6, 2016

File Size Upload Limit > 2 MB #83

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment