Straight out of the box, we’ve set the WP upload size to 25M. But there are cases where you might need to increase that limit.
The process for making this adjustment depends on your version of DVI.
DVI 4.13 and Later Versions #
- Go to DevelopVIDeploy → Applications and click on site you’re working with.
- Click on the TWEAKS tab
- Scroll down to the FILE UPLOAD SIZE section
- Change the value in the SIZE field
- Click the CHANGE button.
DVI 4.12 and Earlier #
Friendly Note: If you’re not using DVI 4.16.7 or DVI 5.x, you really need to upgrade.
To increase the WordPress Upload File Size in these earlier versions of DVI, you’ll need to change two options – one in PHP and the other in NGINX.
Changing the PHP option is simple – you can do that right inside the DVI dashboard:
- Go to DevelopVIDeploy → Applications and click on site you’re working with.
- Click on the PHP tab
- Under the ADD OR UPDATE SOME COMMON PHP OPTIONS section, choose the UPLOAD_MAX_FILESIZE option.
- Beneath that is a field where you’ll enter the value. You can enter something like 50M.
- Click the SET THE SELECTED OPTION button.
The next option you’ll need to change is the NGINX configuration. You need to SSH into the server to do this:
- SSH into the server using your favorite ssh client.
- Once you’re in, use the NANO editor to open the /etc/nginx/sites-enabled/yourdomain.com file. (Replace ‘yourdomain’ with the actual name of your domain.)
- A few lines from the top you’ll see the client_max_body_size entry – change it from 25M to 50M (or whatever you need your new value to be).
- Save the file and then run the following command: service nginx restart.
After both these changes are completed, you should be able to upload larger files to WordPress.
See also: Fixing 413 Request Entity Too Large errors.
More Topics In Tips, Techniques & Education. #
- How To Access The Entire Server via sFTP
- How Do I Limit PHP Workers For Each Subdomain On A Multisite?
- How To Generate an SSH Key Pair
- Considerations For A Large Number Of Sites On A Single Server
- All The Possible WP-CONFIG.PHP Constants For Core WordPress
- Using MIGRATE GURU To Import Sites
- Force The Use of WWW On A Website
- Local & Remote Statuses On Servers
- CORS Example: Allow Access to Resources Between www and non-www Domains
- Import Sites
- Transferring Sites Between Servers
- Monit vs Netdata vs Monitorix vs GoAccess
- Resolving Common Issues With CloudFlare
- View Used Disk Space For A Site
- Customizing Front-end Styles
- How To Generate An SSH Key-Pair With Termius
- How To Change Your DNS Server
- Restoring From AWS S3 Into A New Site or Server
- Tweaking The Malware Scanner
- Handling Low Disk Space Conditions
- Useful OpenLiteSpeed Commands
- Alias Domains
- Custom SSL Certificates