Increasing max upload size for self-hosted WordPress site

When you compose posts in WordPress and you click the “Add Media” button you are presented with a dialog to drag and drop or browse your file system for a file you want to add. You are presented with this lovely text “Maximum upload file size: 2MB.” WTF man, awesome.gif is 5.1MB, and I don’t want to shrink it to size (loss of awesomeness obvs.)
With help from this post I found out that WordPress uses the minimum of post_max_size and upload_max_filesize in php.ini to figure out this max size. Since I’m hosting my own blog now I couldn’t care less what the size is as long as my server can handle it relatively easily. I don’t want to be bound by these restrictions!
Long story short, I changed upload_max_filesize and post_max_size to be 8MB each. This allows a full resolution upload of awesome.gif.
Screen Shot 2014-01-25 at 10.32.01 AM
 
PS. I had to “Restart All Services” on my WAMP server, I suspect only apache would need to be restarted to reload php.ini. Maybe it would auto-reload after a while, IDK just restart it already.

Leave a Reply

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