I had a Media Temple shared hosting account. You may have seen the announcements they had all over that they launched a new service today. I migrated my server over to the new Grid Server and then started to play around with it. First I set up cakePHP on a sandbox domain I have hosted with them so that I could see how hard it would be to get running.
I wanted to be able to use the same cakePHP core for all the domains and subdomains hosted on the site (single point of upgrade) so I went about figuring out what I needed to define in the /app/webroot/index.php page.
Put the cake core and the vendors folders in /domains/. Then put everything in /app into /domains/domain.com/. Delete the folder called html/ that was already in there and rename webroot to html.
Put these definitions in at the start of the /domains/domain.com/html/index.php file:
define('ROOT', '/home/*server num*/domains');
define('WEBROOT_DIR', '/home/*server num*/domains/domain.com/html');
define('APP_DIR', 'domain.com');
define('APP_PATH', '/home/*server num*/domains/domain.com/');
define('CAKE_CORE_INCLUDE_PATH', '/home/*server num*/domains/cake');
define('CORE_PATH', '/home/*server num*/domains/');
Make sure you’ve got your database.inc.php file set up as you would normally set it up then fire up your browser and go to http://domain.com. You should get cake telling you it’s got a DB config and everything is ready to go.