Upload limit more than 1MB on nextcloud:apache container


This Content is from Stack Overflow. Question asked by NSAandYou

I’m using the nextcloud:apache-stable docker image but now I have the problem that I can’t upload more than 1 MB without an unknown error witch isn’t logged.
I copied the php.ini-development to php.ini in the conf.d subfolder and set following values:
post_max_size = 16G
upload_max_filesize = 16G
memory_limit = 1024M
max_input_time = 3600
max_execution_time = 3600

in the .htaccess file in /var/www/html I added following lines:
<Directory “/var/www/html/data”>
LimitRequestBody 0

I also checked the reverse proxy on the cluster but client_max_body_size is set to 0(unlimited as far as I know) and the container before worked with uploads above 1 MB so I don’t think the reverse proxy is the problem here.

But still if I upload a file larger than 1MB “An unknown error has occurred”. Can someone help me here and also say where some config files are because the image often places config files on totally different places.

This is a reupload from my question on https://help.nextcloud.com/t/upload-limit-more-than-1mb-on-nextcloud-apache-container/145606 but I didn’t got a solution there so I wanted to ask here because upload limits don’t only apply for nextcloud.

Thanks in advance!


This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?