journey of a geek


For a while now WordPress has evolved outside the blog platform and allows to quickly develop websites.    So if your are developing websites in WordPress odds are you will want different environments for production, development and possibly staging.  Keeping track of plugins and themes needed can quickly become a pain to setup and keep track of. I’ve been using this method for my installs and I find it makes WordPress easier to maintain and make it portable across mulltiple setups.

Here are the tools we’ll be using:

  • Composer – to manage and list needed plugins and other dependencies;
  • WP-CLI – to install and upgrade the WordPress core;
  • Git – for source control of child theme files, configs and (more…)

July 16th, 2014

Posted In: git, php, wordpress

Tags: , , , , ,



Anyone who has done any serious web development knows that integration testing is an important but often neglected aspect of development, especially in projects that don’t have a dedicated team for QA. Since I already use PHPUnit I thought I would try the Selenium integration it provides. Selenium provides a plaform to automate browser interactions, an add-on to PHPUnit is availble so you can create tests in PHP that will test cross browser functionality. Unfortunately the information is a bit scarce and hard to find so I’ve decided to document the process of automating browser testing using PHPUnit and Selenium. (more…)

April 30th, 2014

Posted In: php

Tags: , , , , , , ,

Leave a Comment


It happens from time to time when you need to copy a wordpress installation to a new domain.  Let’s say you want to move your wordpress blog from to there are several ways to do so. You can use plugins, XML exports, but I found the simplest way to do so is to manually update the database.

Now here is a bash script I’ve made that will migrate your wordpress from one domain to another. (more…)

November 29th, 2013

Posted In: Linux, wordpress

Tags: , , , ,

Leave a Comment


Keeping up-to-date wordpress can take some time, especially when you manage multiple blogs. I recently found this amazing tool to manage WordPress through the command line. The tool is WP-CLI, it’s simple to use and so far has saved me lots of time. And above all keeps y blogs updated on the many security updates for Wwordpress and its many plugins. (more…)

November 7th, 2013

Posted In: Linux, wordpress

Tags: , , ,

Leave a Comment

LEMP stack - Linux - Nginx - MySQL - PHP

In the part 1 on compiling your own nginx + php-frm we’ve focus on nginx part of stack. In this part we will be adding the php-fpm daemon. Php-fpm is the way to go if you want to run php inside nginx. So let’s get started. (more…)

July 19th, 2012

Posted In: Linux, nginx, php


clearing the icon cache db windows 7

Recently I unplugged my removable hard drive from my home computer to bring it to work. When I came back I noticed the shortcuts’ icons that where pointing to my drive were no longer showing. If for any reason your Windows icons start to show the default icon, even after you restored the missing files, then you need to rebuild your icon cache. (more…)

July 5th, 2012

Posted In: General, simple tricks, windows

Tags: ,

One Comment

LEMP stack - Linux - Nginx - MySQL - PHP

I have been using nginx as a caching proxy for quite some time now, and have been very happy with the performance. I find it much easier to administer and performant. Now I’m also adding Nginx as the backend server. Here is how I manager to compile the latest version Nginx, php-fpm and a few modules.

June 28th, 2012

Posted In: Linux, nginx


Next Page »