Report this

What is the reason for this report?

how to increase the wordpress maximum upload file size ubuntu 18.04.3

Posted on August 17, 2020

hi, friends, I want to increase the maximum upload size in WordPress how can I do?



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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @waseemjani141rbLobster,

You’ll need to increase your PHP max_upload_file_limit. You’ll need to do this increase in your php.ini file on your server. To find it, enter your Droplet via SSH

ssh root@XXX.XXX.XXX.XXX

Where XXX.XXX.XXX.XXX is your droplet’s IP address. Once you are in there type in either

locate php.ini

or

which php.ini

Both should show you the location of the said file. Open the file and edit the two lines

upload_max_filesize = 10M
post_max_size = 10M

After that save the file and restart your WebService - Apache/Nginx.

That’s it, you are good to go.

Regards, KFSys

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.