How to change the maximum upload file size for WordPress in DirectAdmin

fianbiasa

Verified User
Joined
Jan 4, 2015
Messages
29
Location
Indonesia
Hi everyone,

I want to ask about the maximum upload file size for WordPress.
I have changed it in .htaccess, .php.ini, .user.ini, and also from the server /usr/local/php81/lib/php.ini

but it still fails.

even though in WordPress it appears:

1733656770027.png


and also :

1733656795106.png


The following is an error display when uploading:

1733656872561.png


file size is only 216MB

please help.


poke : @Richard G . @ericosman .
 
Did you restart php and rewrite config?

da build rewrite_confs
 
Are you using Cloudflare or Nginx by any chance?

When using nGinx you might need to adjust this setting:
client_max_body_size 10M;
to
client_max_body_size 512M;
in nginx.conf and don't forget to restart nginx afterwards.
 
Did you restart php and rewrite config?

da build rewrite_confs

yes, i have restarted

Are you using Cloudflare or Nginx by any chance?

When using nGinx you might need to adjust this setting:
client_max_body_size 10M;
to
client_max_body_size 512M;
in nginx.conf and don't forget to restart nginx afterwards.

I am not using cloudflare DNS service, and I am using nginx_apache for webserver.

domain log/error doesn't show any relate problem ?

strangely, the error logs do not appear.
 
Do you use modsecurity ? try check it if there any logs triggered from modsec
 
Back
Top