Increasing max upload limit in WordPress

I was working on adding some fancy media content  for one of my customers, and WordPress gave me this error:

This file is too big. The maximum upload size for your server is 2M.

Ok, I added the fail. It wasn’t WordPress!

Did some research and found this simple and easy solution to increase the limit that should work on a shared host as well:

  1. Login to your web server
  2. Find the root folder for wordpress (where all the good stuff is)
  3. Edit .htaccess file (or create one if it doesn’t exist)
  4. Add following lines to the file
    php_value max_input_time 250
    php_value max_execution_time 250
    php_value upload_max_filesize 15M
    php_value post_max_size 15M
  5. Save the file
  6. This should allow you to post decent size files, and give you enough time for processing without server timing you out.

Let me know if this works for you!

1 Comment

  1. Thanks! Worked perfectly :O)

Leave a Reply to Mike Lawrence

Back to Top