Can't Upload big files even after changing all settings

parthdp

Verified User
Joined
Apr 23, 2020
Messages
17
Whenever I try to upload file bigger than 1 Gb from my website, It's giving a 413 Error Even after i changed my upload max limit to 10 gb.

I have changed
post_max_size in php.ini
upload_max_filesize in php.ini
memory_limit in php.ini
max_input_time in php.ini
max_execution_time in php.ini

And
Max Request / Upload Size in directadmin panel's server setting

None of the changes are working

Operating system : Centos7
Server : nginx_apache
 
Are you using php fpm?
What php version as well?
What file are you making the changes in? file path and all.
Do you have Modsecurity on?

Thanks for making a new topic..(y)
 
I'm using php fpm
php version 7.2 - tried 7.1,7.3 and 7.4 versions
I have made changes in /usr/local/php72/lib/php.ini
modsecurity is off
 
How is it set in the file?
as 10G
or 10000M

Looks like it could be apache as well from the post.

10 gig is a big file

you did
Code:
systemctl restart php-fpm72
systemctl restart httpd
systemctl restart nginix

is this a new server?
You don't have mod ruid installed, correct?

Are these the command you used to install?
Code:
cd /usr/local/directadmin/custombuild
./build update
./build set php1_release 7.2
./build set php1_mode php-fpm
./build set mod_ruid2 no
./build php
./build rewrite_confs

this maybe
 
This is my php fpm.conf settings

  1. pm = ondemand
  2. pm.max_children = 10
  3. pm.process_idle_timeout = 20
  4. pm.max_requests = 500
Do i have to change anything ?
 
Ok.. I Have made changes in /etc/nginx/nginx-defaults.conf And now it's working fine..
 
it will be owerwritten on nginx update or confs rewrite.
so for nginx_apache You need to copy:
/usr/local/directadmin/custombuild/configure/nginx_reverse/conf/nginx-defaults.conf
to /usr/local/directadmin/custombuild/custom/nginx_reverse/conf/nginx-defaults.conf
or if you use nginx without apache You need to copy:
/usr/local/directadmin/custombuild/configure/nginx/conf/nginx-defaults.conf
to /usr/local/directadmin/custombuild/custom/nginx/conf/nginx-defaults.conf
and add modifications to this custom conf.
 
Back
Top