-2

I try to upload file to my own website when I try upload file with less than 1GB it's work fine, But when I try with large file give me message : "The connection was reset." ERR_CONNECTION_RESET

Then I try to edit and increase all value php.ini

   php_value max_execution_time 10000
   php_value max_input_time 10000
   php_value max_input_vars 1000
   php_value memory_limit 2000M
   php_value post_max_size 2000M
   php_value session.gc_maxlifetime 10000
   php_value upload_max_filesize 2000M

In the end still have a problem

I work on my own server and I have access to whm, cpanel with centos 7 And there's no logs for this problem on apache logs

  • 1
    The default limit in Apache > 2.4.53 is 1GB (1073741824 bytes) - [LimitRequestBody](https://httpd.apache.org/docs/2.4/mod/core.html#limitrequestbody) – user1191247 Jan 17 '23 at 23:50
  • For a file of size larger than 1G, better use other method to upload (**consider this**: if you try sending an email with an attachment of size larger than 1G thru a normal ISP, what happens ?) – Ken Lee Jan 18 '23 at 00:35
  • @nnichols I've just add `limitRequestBody 0` to htaccess file it's works fine thank you – Moayad Shloul Jan 18 '23 at 21:18

1 Answers1

-1

Can you check the features of the package you added on WHM? The quota of the package you have added may be low.

  • You don't have to create an answer to ask a simple question. Just a comment is enough :) – Juan Jan 20 '23 at 11:10