Change maximum file size for files uploaded in WordPress

If after changing Settings > Max upload file size in your blog network settings, you still see old value for maxium upload file size, then you may be in need of changing your PHP parser configuration. You can do this at least in two ways and this article should help you in this task.

Approach number one comes from this blog article. Create your own php.ini file, set new values inside:

upload_max_filesize = 32M
post_max_size = 32M

and upload it to the same folder, that keeps your WordPress installation files or to root folder of your hosting.

If this does not work, because newly set values are ignored or you don’t have access to FTP / abillity to change php.ini file, then simply look around your hosting’s settings or configuration panel.

My hosting uses cPanel, so I had to:

  1. Go to Software section on main screen and click on Select PHP Version icon.
  2. Change version of PHP from 5.4 (native) (can’t change invidual settings in this version) to just 5.4 and click Set as current.
  3. Click Switch To PHP Options.
  4. Click on 32M value set for post_max_size and upload_max_filesize settings and change it to 64M.
  5. Click on Save to confirm changes.

(there are reports, that you can change this similarily in Plesk)

Voila! In Media > Add New of any of my blogs I could finally see Maximum upload file size: 64 MB.

Leave a Reply