Increase upload file size on Media Temple (dv)

Are you having trouble increasing the maximum allowed file upload size on a site hosted on a Media Temple (dv) server?

You’ve probably come across these instructions on Media Temple’s knowledgebase and are perhaps still having issues. After a quick tweet support session with @mediatemplehelp here’s what solved this exact issue I was having:

You’re most likely running php in FastCGI

This portion is the crux. You’re most likely running the site in FastCGI mode*. If so you’ll need to edit php.ini at the subscription level rather than at the root level of the server:

Where is the subscription level version of the php.ini file? I had the same question. It’s here:

/var/www/vhosts/domain.com/etc/php.ini

Thanks again to @mediatemplehelp:

Wait, edit the php.ini file?

Here’s a quick instruction set on how to get to this file:

  1. Enable root access
  2. Connect to your sever via SSH or,
  3. Connect to your server via SFTP (this is my method, using Transmit)
  4. Browse /var/www/vhosts/domain.com/etc/php.ini and edit, either with vi (ssh) or a text editor of your choice (sftp).

And what to add once you find it:

memory_limit = 128M
upload_max_filesize = 80M
post_max_size = 85M

You’ll then need to restart Apache. The quickest way to do that is through SSH:

/etc/init.d/httpd restart

* If you’re running PHP as the default Apache Module, then this article won’t help. Give @mediatemplehelp a shout.

4 thoughts on “Increase upload file size on Media Temple (dv)

  1. Hey there Bryan! Really good article, thanks for putting the word out about this! I just spoke with our KnowledgeBase team and we\’re going to get that same information into our KnowledgeBase article so there is less confusion.

    Also wanted to put on your radar that you can also do this through Plesk by:

    1) Go to the Subscription
    2) Expand the menu underneath the domain name
    3) Select \”PHP Settings\”

    Here are some screenshots to help:

    http://screencast.com/t/aO3xSsbxJV
    http://screencast.com/t/IouwySK68G

    Again, thanks for the great article and if you ever need anything else we\’re available 24/7 on Twitter: @MediaTemplehelp

    Drew J
    MediaTemple.net
    @MediaTempleHelp

  2. The island was just about barren, until Onassis imported over 200 types of trees together
    sand carted on the island from nearby Salamis. Candle light vigils and protests were
    organized on Facebook and Twitter in support from the protestors, democracy as
    well as the end towards the bloodshed. Many people who weren’t really in
    search of the underneath little bit of content but researching bits of writing in relation to domain name
    registration considered the beneath part of writing good.

Leave a Reply

Your email address will not be published. Required fields are marked *

Ready for a refreshing experience on your next website design?