Increase WP Upload Limit

wordpress, lunarpages

A new client requested for a site where he will be uploading large number of photos and video but still want to use WordPress as the base of his site. But I’ve always seen the 2MB limit in the WP’s Media upload page and that will not work even with a short video.

I’m not sure how other hosts deal with this, but Lunarpages made it relatively easy.

It turned out to be a pretty easy fix:

1. In the root of your WP directory, find or create a php.ini file, then add this two lines: (? is the new limits you want to set)

upload_max_filesize = ?M
post_max_size = ?M

2. In your home directory (above your public web directories), find the .htaccess file, point the directory to where your php.ini file is in step 1:

suPHP_ConfigPath /home/yourUserName/public_html/yourWP_root

(remember to replace yourUserName and yourWP_root [might be blank if you installed it as the root])

Notes:

  • If you’re not hosted by Lunarpages, you should check with your own host for a solution.
  • Make sure you only use text editor to change the 2 files I mentioned here. For Mac: BBEdit/TextEdit. For PC: Notepad
  • Always save a copy before you change these files
  • If you don’t know how to see hidden file on your computer (like .htaccess), go here for Mac: via Terminal; via Finder Window, here for PC