Otreva currently supports Internet Explorer 9 and higher. You should consider upgrading to get all intended functionality. ×
media-temple-logo

(mt) MediaTemple WordPress File Size Upload Limit Increase 1024KB

in Blog

Having trouble changing your WordPress file size upload limit on a (mt) MediaTemple DV 4.0 with multiple sites? I was consistently stuck at the 1MB upload limit and tried everything I could find on the net from .htaccess changes, to wp-config.php edits, to uploading a php.ini file to wp-admin. Unfortunately none of these will work for a (mt) MediaTemple DV 4.0 with vhosts. The fix actually does require a php.ini edit but finding it is the trick.

To get around this issue here is what you can do.

  1. SSH into your server
  2. Type at the command prompt:
    nano /var/www/vhosts/yourdomain.com/etc/php.ini
  3. In this php.ini file for the particular vhost find
    post_max_size = xM 

    &

    upload_max_filesize = xM
  4. If either of above parameters are not there, add to the php.ini file.
  5. 10M means 10mb upload limit so what I did was change both to 10M
    post_max_size = 10M 
    upload_max_filesize = 10M
  6. Save and exit the file by pressing CTRL – X, typing Y (to overwrite changes), and hit enter.
  7. Restart your server@ the command line by typing:
    /etc/init.d/httpd restart
  8. Now you should see your upload limit change in WordPress.
I hope this helps some of you out who are hosting multiple sites on a (mt) MediaTemple DV 4.0 and have trouble increasing WordPress’s filesize upload limit with information found on other sites.

If you are getting a blank php.ini file when trying the above, try adding this line of code into a WordPress template to find out what location your site is pulling its php.ini preferences from:

<?php phpinfo(); ?>

* Please keep in mind that not all servers have the same software versions and therefore setting PHP values can be different.

Leave a Reply