I just came across an issue trying to upload some files to my wordpress server that were larger than 2MB. By default in wordpress, 2MB is the maximum file size upload limit. After a little digging around it turns out this is infact a default setting defined by the PHP language handler settings.

To resolve the issue simply edit the upload_max_filesize variable in your php.ini file on your server assuming you don’t have an htaccess file overriding this setting.

Since I’m running Ubuntu 10.04 LTS the steps were as follows:

  1. sudo nano /etc/php5/apache2/php.ini
  2. then change upload_max_filesize=2MB to upload_max_filesize=5MB
  3. sudo /etc/init.d/apache2 restart

No Comment.

Add Your Comment