Flush DNS cache in Mac OS X

When transferring domains from one hosting company to
another, it sometimes takes my computer a while to realize there the new
address is (where the domain resolves to). To speed up the process and
ensure my Mac can see the new site’s location, I use the command:

lookupd -flushcache

This is a command you must input into the Terminal (Applications >
Utilities > Terminal). Type it in as above and hit the enter/return
key and then try to access the site again. You should also reset your
browser’s cache.

There are exceptions where this won’t have any immediate effect, but I have found it to work quite well.

If you have any other experiences, please add them in the comments below.

How to save $20 on your GoDaddy order

I’ve been a user of the SAVETEN discount code at GoDaddy
for about a year now, always saving at least 10% on any orders of domain
names.

Just today, I was renewing a domain for several years and found this code on the net ALOHA .

Simply enter this in during the checkout process and you can save $20 from any orders of $75 or more.

If you use any GoDaddy or other internet coupons and would like to
help a brother out, please post them in the comments section below.

PHP Safe mode workaround

Just had a small crisis with an author trying to post a
breaking news story to a WordPress site I maintain. The site had just
been moved across from GoDaddy hosting to Media Temple’s dedicated
virtual hosting platform. Everything went fine with the move from
servers, the db backed up and imported no hassles, everything just
worked – or so it seemed!

When trying to upload an image to go with the breaking story, the author encountered an error:

The uploaded file could not be moved to .../path/to/file/

This was quite alarming as without the image, the news story could
not be released. I found the cause to be php running in safe mode, a
common configuration for the security conscious. As I’m in a dedicated
server, not a 100% private server, Media Temple sets it up like this by
default to protect all other users. That’s nice but it killed my ability
to upload in WordPress!

The long workaround is to contact Media Temple, request a support
ticket and have them enable root access for me, then go in and edit the
php.ini file via the shell and restart the web daemon. Easy – not! Also,
I would prefer no down time if possible.

The PHP Safe mode workaround I came up with was to
delete the current month’s upload folder (it was empty, so not scary!)
and then create the same named folder with my FTP program. This gave the
correct group user ID to the upload folder, allowing WordPress to
upload to it.

This wouldn’t work so easily if you already have files in the said
folder, you would first have to download them or move them to another
folder, delete the original, create the same named folder via FTP and
then put said files back.

This really got me out of trouble and will buy me time until Media
Temple grants me root access to make the long term changes needed.

More info about this problem and other workarounds are available at Sébastien Wains homepage.