WordPress Maximum Upload Size

Another weird issue I’d been running into for ages was WordPress’s maximum file upload size. It had been defaulting to 2MB for as long as I can remember, and none of the instructions I could find online were helping.

People were recommending I edit the .htaccess file or add some lines to wp-config.php, but even with those changes I was hitting the same issue: it was locked at 2MB.

I finally thought to check the php.ini (located for posterity at /etc/php/7.0/apache2/php.ini), searched for a line containing 2M and found this little gem:

Upped it to 64M, reloaded Apache, and everything magically began to fall into place.

Leave a Reply

Your email address will not be published. Required fields are marked *