HTTP File uploads above 30MB failing
Hello,
I have this issue where clients are unable to upload files which are larger than 30MB via wordpress or file upload form. In wordpress, the upload bar will load and reset a few times and fail.
I have increased post_max_size, upload_max_filesize, max_execution_time both globally and locally yet it doesn't work.
I also tried disabling csf firewall on the server yet the issue is still not resolved.
I have tried changing PHP versions, increasing cpanel upload size in tweak settings and almost tried everything possible I can think of.
I would appreciate if anyone has any idea about this.
-
Ok so I contacted cloudlinux support and the wonderful guys there helped me resolve the issue. The issue was caused by mod_reqtimeout. From Cloudlinux support [QUOTE] It looks like you are using mod_reqtimeout. In the configuration file: /etc/apache2/conf.d/includes/pre_main_global.conf the longest 'body' time was limited to 40 seconds. I've increased it to 300 and successfully uploaded a 100MB file
RequestReadTimeout header=20-40,MinRate=500 body=20-300,MinRate=500
This resolved the issue.0 -
Thanks for updating your thread with the solution that works for you. :) 0
Please sign in to leave a comment.
Comments
2 comments