Author Topic: Error after 20 seconds of uploading file  (Read 5124 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Error after 20 seconds of uploading file
« on: September 17, 2020, 10:27:09 PM »
Hi, thanks for the help in advance, I have 3 servers with CWP, everything works fine, the problem is when uploading files by web or mail, after 20 or 25 seconds it shows a connection error to the server or error 500, if not that time arrives, it loads it without problems.

max_execution_time = 600
upload_max_filesize = 128M
memory_limit = 128M
post_max_size = 128M

Thank you very much

Offline
*
Re: Error after 20 seconds of uploading file
« Reply #1 on: September 18, 2020, 02:22:18 PM »
http://wiki.centos-webpanel.com/big-file-upload-via-file-manager

you need to set as by instructions depending on the webservers and php you use....this can be multiple locations but all locations are on the wiki
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: Error after 20 seconds of uploading file
« Reply #2 on: September 21, 2020, 01:57:09 AM »
Just finished fixing this issue on my server. No matter what I did to any of my php.ini config files, seemed to always time out after about 20 seconds.

Turned out to be an Apache module called reqtimeout.

Go to: WebServer Settings > WebServers Conf Editor
And edit the httpd.conf
Find the line:
Code: [Select]
LoadModule reqtimeout_module modules/mod_reqtimeout.so & add a '#' in front so it reads:
Code: [Select]
#LoadModule reqtimeout_module modules/mod_reqtimeout.soThen reboot Apache from the dashboard.

Offline
*
Re: Error after 20 seconds of uploading file
« Reply #3 on: December 18, 2020, 09:34:09 PM »
Same issue,

This was the solution, i do not like it though - would like to understand why that is happening.