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
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


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