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 Comments


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

Reply

    Thanks for the followup info Drew. The Plesk method looks much easier for most people. I like to bang my head through SSH and SFTP once in a while though!

    Reply

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.

Reply

Leave a Reply

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

Check out our Complete Website Package

Chat with us about your project or click below to find out more!

Learn More   Chat with us

Hi. We are Spigot. Telemarketers pronounce it Spy-got.

We are a Park City, Utah based web design shop that excels at building custom websites powered by WordPress and WooCommerce. We love content - content strategy, content curation, content soup...????Have a look around the site. As you browse you'll find useful navigation links in the sidebar on the left. We hope you find them useful anyway... Please let us know what you think, shoot us a message here.