By Atmadeep Das
I am migrating my WordPress and I am using All in One Migration plugin. I need to restore my backup and the file size is 1.4 GB, but with default setting, I can only upload to max 16 MB.
I have tried to locate “max_filesize” under php.ini but I can’t find it.
This is my first time using DigitalOcean and I am not sure how things work here.
The command I used to go to my php.ini is - sudo nano /etc/php5/apache2/php.ini
Please suggest me how to solve this problem.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Greetings!
You can absolutely increase the upload limit, but I would not recommend it for that size migration. If you manage to kill every timeout that would hit before you hit 1.4GB, you’ve effectively optimized your server to cause problems later. If a plugin hangs for any unknown reason later, you want it to kill the process with a reasonable timeout rather than stack until you’re out of memory (followed by the kernel killing MySQL for OOM, every single time).
I would instead recommend that you copy your wp-content folder from your other hosting location, and upload it over SFTP to overwrite the wp-content folder on your server here. Then take a backup of your MySQL database and import it. This is an old guide but it’s advice remains sound:
With that said, you can find information about increasing upload limits here: https://www.cloudways.com/blog/increase-media-file-maximum-upload-size-in-wordpress/
Jarland
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.