Create a folder testsite.dev in your ~/Sites folder and immediately access it with your browser by using http://testsite.dev, without changing your apache config or adding sitenames to your DNS or /etc/hosts file. That's what you can do after following the instructions in this post!

When using a VCS(Version Control System) like SVN or GIT to deploy files to your webserver you are generally faced with some troubles with permissions.

If the website/webapplication needs permissions to write files in folders, you cannot easy chown these folders like:

sudo chown -R www-data:www-data content

NOTE : This post was sitting in my drafts for way too long (over 7 months now), so I'll just post it in the hopes someone likes it. There could be rough edges here and there, but hey, that's what the contact page is for... ;)

Because I tend to do some PHP development on my MacBookPro runnin OSX 10.7(Lion) and want to be able to test the email-functionality, without the system actually sending email to people, I was on the lookout for an easy way to accomplish this in such a way, that I would be able to collect all mail and display both text and HTML versions of it. I found MockSMTP, and it works like a charm. In this post we'll set it up and configure the system to route all mail to MockSMTP, even when it's not running.

If you're working a lot with remote sessions like I do, you inevitably type a command in the wrong window... Most of the time it's something harmless like an ls or an cd command, but if you're trying to clean stuff up with an rm command things can get bad.

The easiest way to differentiate between local and remote sessions or different remote sessions is changing the background-color. When switching terminal, you immediately see/know where you are, without looking at the prompt or the window-title. So how do we implement this in the standard OSX Leopard Terminal.app ?

If you are getting the following errors while trying to bake something on osx 10.4: