Cannot upload files >512MB

Hi,

I had the problem, that I could not upload files bigger than 128MB.
I tought I had fixed the problem but that was premature.

Now I cannot upload files bigger than 512MB.
I think I did everything within this suggestions https://docs.nextcloud.com/server/11/admin_manual/configuration_files/big_file_upload_configuration.html?highlight=big%20file%20upload
but it still won’t work.

/opt/psa/admin/conf/php.ini contains the following:

output_buffering = Off
max_execution_time = 0
max_input_time = -1
memory_limit = 2048M
max_file_uploads = 99999
max_input_vars = 2000
post_max_size = 16G
upload_tmp_dir = “/var/www/vhosts/big.deal/temp/”
upload_max_filesize = 16G

Files

/etc/php/7.0/fpm/php.ini
/etc/php/7.0/cgi/php.ini
/etc/php/7.0/apache2/php.ini

have all the same options set

And I added this to the apache & nginx directives within Plesk (see the solution of my first problem)

<IfModule mod_fcgid.c>
	FcgidMaxRequestLen 2147483648
	FcgidMaxRequestInMem 2147483648
	FcgidMaxRequestsPerProcess 100
	FcgidProcessLifeTime 7200
</IfModule>

I forgot the log-message:

[fcgid:warn] [pid 18436] (70008)Partial results are valid but processing is incomplete: [client 127.0.0.1:4047] mod_fcgid: can’t get data from http client

Any help is highly appreciated!

Best regards

Check the .htaccess file in your Nextcloud folder.

https://docs.nextcloud.com/server/11/admin_manual/configuration_files/big_file_upload_configuration.html#configuring-your-web-server

I’m sorry, I forgot to post the .htaccess

<IfModule mod_php5.c>
  php_value upload_max_filesize 16G
  php_value post_max_size 16G
  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
  </IfModule>
</IfModule>
<IfModule mod_php7.c>
  php_value upload_max_filesize 16G
  php_value post_max_size 16G
  php_value memory_limit 512M
  php_value mbstring.func_overload 0
  php_value default_charset 'UTF-8'
  php_value output_buffering 0
  <IfModule mod_env.c>
    SetEnv htaccessWorking true
  </IfModule>
</IfModule>

That’s the only place I didn’t set memory_limit to 2048M yet.

First of all:
How is the .htaccess changed?
I changed the file directly, but I think it will be replaced, because there is a comment
which says

DO NOT CHANGE ANYTHING ABOVE THIS LINE

And now to the reason of this thread:
I changed from FPM to FastCGI and now it works, but I don’t know what the difference is and if it’s supposed to be this way or if FastCGI should be used and I need to make more adjustments.

Thanks in advance!

Best regards