SOLVED HTTP File uploads above 30MB failing

SamAdu

Member
May 8, 2018
7
3
3
Germany
cPanel Access Level
Root Administrator
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.
 

SamAdu

Member
May 8, 2018
7
3
3
Germany
cPanel Access Level
Root Administrator
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
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

<IfModule mod_reqtimeout.c>
RequestReadTimeout header=20-40,MinRate=500 body=20-300,MinRate=500
</IfModule>


This resolved the issue.