Archive for December, 2008

Media Temple is slow

Tuesday, December 30th, 2008

“Tell me something I don’t know”, your saying. I have a handful of sites on the grid service, from wordpress to static html. They have one common trait. Extremely long latency. Typically 1 to 4 seconds on a good day.

I’ve contacted support multiple times and it’s like speaking to a broken record. “WordPress is the cause, Drupal is the cause, Your sucky programming is the cause” you get the picture. I guess I’m being hard on them.  How was I thinking they would respond?

Warning Extreme Sarcasm ahead.

“I’m sorry about our crappy network. We oversell accounts and so we are constantly having network issues. Let me recommend another more competent host for you. Of course we will refund your account and pay you for your unnecessary time optimizing the already optimized sites.”

If they should that kind of honesty, I might consider keeping them as a host. But as it stand now I will be switching over to slicehost.

Regardless of the situation at MT, I should be using host that gives me root access to my VPS.

P.S. Slicehost, PLEASE don’t let me down.

Posted in Web Hosting | 2 Comments »

A note on using git for web development.

Monday, December 22nd, 2008

Let’s start with some background information, the site I was working on was a typical wordpress blog running with wp-super-cache and hosted on a slice. I usually develop on my local server with git. I then push the site to my slice.

The trouble came when I decided to revert my code back to a previous instance, and after reviewing my site, I pushed the updates to my slice and turned on wp-super-cache. But after a few hours I noticed my site was continually going offline. Even though it never affected any of the other sites I hosted on that server.

The problem was that git doesn’t remember file permissions and I forgot to tell git to ignore the cache folder. So when I reverted back to a different version it also reverted the cache folder, its contents, and proceeded to change the permissions to what I assume was the default permissions when I first initiated the repository. So not being able to write to the cache folder made wp-super-cache crash the apache process and eventually all the apache processes took all the memory. 

So when using git don’t forget to reset your permissions, when reverting back to an earlier instance of code.

Posted in Coding, Git | No Comments »