how to increase the wordpress maximum upload file size ubuntu 18.04.3

Posted August 17, 2020 132 views
Ubuntu 18.04

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

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.

1 answer

Hi @waseemjani141rbLobster,

You’ll need to increase your PHP maxuploadfile_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.


Submit an Answer