I just migrated my website (built on CakePHP) from Media Temple's (gs) server to (dv). I got an error that the /tmp/cache folder is not writable. Changing the permissions to 777 fixes this error - however it seems unsafe (is this true?). On the (gs) I didn't have to give write access to "Everyone". So it seems the webserver is neither the user or belongs to the group.
How come the server can't write to the cache file and how can I make it so that the web server can write to the tmp folder without setting permissions to 777?