PHP5 on Media Temple Grid-Server

September 24th, 2008

I just recently switched a bunch of sites over to Media Temple, and was dismayed to see that by default the sites run PHP4. Since many of my projects require PHP5 I set out to figure out how to get these sites running. A fair amount of digging through the Media Temple knowlege-base revealed the answer.

  1. Create a .htaccess file in the root of the site
  2. Add the following snippet of code and save:
    
    Action php5-script /gs-bin/php-5.1.6-6
    AddHandler php5-script .php
    

Update: MediaTemple GS is now running PHP 5.2.6. To enable it, use this snippet instead:


Action php5-script /gs-bin/php-5.2.6-1
AddHandler php5-script .php

Tweet This

11 Comments to “PHP5 on Media Temple Grid-Server”

Leave a Reply