Control Web Panel

WebPanel => PHP => Topic started by: vifsolano on September 17, 2020, 10:27:09 PM

Title: Error after 20 seconds of uploading file
Post by: vifsolano 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
Title: Re: Error after 20 seconds of uploading file
Post by: studio4host 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
Title: Re: Error after 20 seconds of uploading file
Post by: emerysteele 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.
Title: Re: Error after 20 seconds of uploading file
Post by: cfzlabs 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.