Question

how to increase the wordpress maximum upload file size ubuntu 18.04.3

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


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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