I have this PHP configuration:
ini_get('max_execution_time') = 3000
ini_get('memory_limit') = 256
ini_get('post_max_size') = 200M
ini_get('upload_max_filesize') = 200M
On this environment:
CentOS 7 server
CentOS Web Panel
Apache web server 2.4
PHP 7.2
Laravel framework 7.0
And when I try to upload files more than 1MB I get a 500 internal server error!
This is the error in network tab:
Other info about request:
I tried everything that I had in mind like setting ini in controller changing the sending file method from ajax to simple form, etc... but no luck!
I also restarted the httpd service even restarted the server so maybe the changes make affect but nothing changes
Edit: I also see this error in apache logs:
Handler for (null) returned invalid result code 70007
After a lot of researches and tries I found the problem and in doesn't make sense at all!
As in this link said: 7007 apache error
I had to just disable this line:
LoadModule reqtimeout_module modules / mod_reqtimeout.so
From Apache httpd.conf file