What in the heck do you put as the host for Memcache::addServer($host, $port)?
I am hosting on mediatemple and this is really, really, really, really starting to get to me.
Do I have to set up a new memcahce server or what. I have no idea what to do and every tut just keeps saying “localhost”. Well I don’t want to run it on my localhost…. I guess I just don’t understand what’s going on.
Any help would be greatly appreciated.
“localhost” is whatever machine the code is running on. If the code is running on a server at MediaTemple, then “localhost” will be that server.
If they provide a memcache server, they should provide it’s address somewhere in their knowledge base. Try “localhost” first, on the off chance that it’s running on the same machine your site is hosted on.
UPDATE
Assuming you’re running on their Grid service, try following these instructions:
http://kb.mediatemple.net/questions/854/Using+memcached+with+Django+or+Ruby+on+Rails+in+a+(gc)+GridContainer