Skip to content

Commit a4ec27c

Browse files
committed
wip: Remove memory and upload PHP settings
Because memory & file size limitation settings are specified in the local configs, they override any values in the global `php.ini` on the system. Because of this, it's impossible to, for example, increase the memory limit of Nextcloud without touching its own configuration/source files. These settings are removed in favor of the `php.ini` settings. The justification for not having these settings specified strictly by Nextcloud is that they are variant. In other words, their values are environment-dependent, and especially dependent on the content hosted by Nextcloud itself. For example, hosting lots of images and thumbnails frequently causes memory issues. Signed-off-by: Robert Dailey <rcdailey@gmail.com>
1 parent efe0b3e commit a4ec27c

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

.htaccess

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131
</FilesMatch>
3232
</IfModule>
3333
<IfModule mod_php5.c>
34-
php_value upload_max_filesize 511M
35-
php_value post_max_size 511M
36-
php_value memory_limit 512M
3734
php_value mbstring.func_overload 0
3835
php_value always_populate_raw_post_data -1
3936
php_value default_charset 'UTF-8'
@@ -43,9 +40,6 @@
4340
</IfModule>
4441
</IfModule>
4542
<IfModule mod_php7.c>
46-
php_value upload_max_filesize 511M
47-
php_value post_max_size 511M
48-
php_value memory_limit 512M
4943
php_value mbstring.func_overload 0
5044
php_value default_charset 'UTF-8'
5145
php_value output_buffering 0

.user.ini

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
upload_max_filesize=511M
2-
post_max_size=511M
3-
memory_limit=512M
41
mbstring.func_overload=0
52
always_populate_raw_post_data=-1
63
default_charset='UTF-8'

0 commit comments

Comments
 (0)