Everybody may already know how to do this but, I didn’t and it was driving me crazy. And, since I will have to make this change again sometime, I’m posting it here.
Ever since I switched over to WordPress, I’ve been stuck with a two (2) meg file upload limit. I thought this was a bit crazy because I self host this site and have full control over every aspect of the server. Since I don’t give myself any limits anywhere else (I’m such a good host) I didn’t like having one here either. Or at least not one that small.
So, How do you change the max file upload size in WordPress? The simplest way is to edit your PHP.INI file. The location of this file will depend on your host or, if you install PHP yourself on your own server, it will depend on where you told it to create the file. There is a high possibility that it will be located in your Windows directory. That is, of course, if you installed it on a Windows Server.
At any rate, find the php.ini file, open it with your favorite text editor, look for this line:
upload_max_filesize = 2M
and change the size to whatever you need. So if you want a 32 meg limit make the line read:
upload_max_filesize = 32M
Save the file and close the text editor. For this new setting to take effect, you will need to restart IIS and is dependencies. Easiest way to get all of those restarted is to click “start —> run” then type “services.msc” in the run box. Find IIS Admin in the list, click it once so it is highlighted, then click “restart” on the left. This will then prompt you that it needs to restart the dependent services as well. Click “OK”. Once they are all stopped and restarted, you are good to go. Log back into WordPress and upload a file. You will see your new file limits in effect.
© 2011, Robert Owen. All rights reserved.

Thanks for this! I remember being hit with this limit before. I’m really glad you’re on WordPress now because I’m looking forward to more how-tos from you!
No problem! I’m trying to force myself “back on the wagon”. 😆 Hopefully there will be some more WordPress posts coming soon. I’ve had some other “issues”. Now I just need to remember what I did to fix them. 😉
… or you can just do what I do:
Open favorite email program.
Click Compose.
Start typing, “R” … and then, “O” … into the To: box.
Select, “Robert Owen” from the drop down menu.
Type, “HELP!!” into the Subject Box.
Type, “Hey Robert, I was trying to get this massive picture of my supper loaded onto my website and it won’t go. Fix it pretty please? It was a delicious dish and I want people to be jealous. Thanks! Gina ;~}” into the Message Box.
Click Send.
Wait 42 seconds.
Check website for update.
Repeat above substituting, “Thanks!!” for the previous Message Box text.
Gina – you are awesome.. I think this was my first genuine laugh of the day!
Just wanted to say thanks for posting this. It was driving me crazy. The key piece of information for me to get it to work was your comment on where exactly to find the php.ini file. I was putting it where my website was (under wwwroot) but the correct location was under program files(x86)\php\v5.2\.
No problem! Glad it helped.