Nginx error and WordPress upload limit

SYSTEM INFORMATION
Operating system Rocky Linux 9.4
Webmin version 2.202
Usermin version 2.102
Virtualmin version 7.20.2
Authentic theme version 21.20.7
  1. I am getting the following error when i try to upload large file than 1MB in WordPress, how to change the nginx client_max_body_size? error is also for plugin/theme upload.

  2. WordPress Installation rewrite the default upload limit to 10MB for each site. i have set 1gb upload limit in global php version. do i need to manually update each site to have large upload limit?


This is the limit set on the Nginx level.

Go to Webadmin → Servers → Nginx → Edit Configuration Files. Open the configuration file for you server and inside the server section add:

client_max_body_size 5M;

Where 5M is the max size you want.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.