Select Page

DBC Backup 2 updated for WordPress 3.6

A new version of DBC Backup 2 my WordPress plugin to automatically backup your website has been released. This version has been tested to support WordPress 3.6 and is available to download now.


What’s new in DBC Backup 2 v2.2

DBC Backup v2.2 — WordPress

Minor changes to the Settings Page for the plugin, that should make it easier to use.

FIXED – a few bugs

TESTED – on WordPress 3.6


Where to get it …

Get from my DBC Backup 2 plugin page




Download via

FAQ’s – How to start stop Apache on a Mac

So this is a very basic FAQ and notes on Apache for Mac

Terminal Commands

Starting: “sudo apachectl start”

Stopping: “sudo apachectl stop”

Restarting: “sudo apachectl restart”


Make Apache start when you login to your Mac


sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist

sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist

Git: How to add a submodule in the root of your project – Try Git SubTree instead

This is just a short post and the title says it all … I’ve wanted add submodules to a Git repository but you get an error if you try.  So how do you add a submodule to your root folder in your Git project?  Easy — Git Subtree Merge is what you need.

Add your 2nd Git Project as a Remote

Actually, you start by adding a git remote with the source being the git project you want to pull in.

Git Remote SourceTree

The you do a pull from your Remote … and merge / diff any of the files

Gite Remote Merge

Now you have your second project added in the root of your main project 🙂


So .. go to your second project .. make a change and commit and push it  … then go back to your first project and you’ll see the remote has an update 🙂






Git Subtree Merge on Git SCM

What a difference a year makes — making a fashion statement

This time last year … almost 12 months now, I was a keen follower of fashion. My wardrobe was made up of some of the best jeans money could buy. I only wore jeans, I’d always wear a long sleeve dress shirt and was starting to realise that a black dress shirt is amazing. I’d keep my eyes on the fashion rags and was always looking for another cool pair of jeans.


I believed, that I’d never, ever had to wear a suit.


Fast forward a year, I’ve now switched from jeans to suits … I’ve not brought a new pair of jeans in the past 12 months … Now, I find myself watching other suit wearers for something I might like … and I keep my eye on sales just cause I’m not prepared to spend £800 on one suit. I still read the same fashion rags, but I skip the jeans.


So what changed? My career path changed.


I must say, what annoys me most about suits … is that the jacket is made up of the most material … yet it’s always the trousers that suffer the wear. And .. when the trousers are worn out .. you need to get a new suit!



Did this post have anything to do with career or work? Well yes it does … Always dress the best, always care for your suit (or jeans), always check yourself in the mirror before leaving the house …  because visual ‘first’ impressions do count.

Introducing empty – Apache Ant Build for WordPress

Welcome and say hello to empty. empty is a bunch of ANT Build Tasks for WordPress plugin developers that help automate the build thanks to Apache Ant.

Why ANT not PHING?

Go ask Google that … there are plenty of conversations elsewhere on ANT vs PHING. It’s really a personal choice.

Ant, Phing, Grunt.js, make are all build tools for developers. Ant is a popular tool, free and widely used. It’s commonly used for Java but can fit in with other code and projects.

Why not Grunt.js?

Well yes, experimentation is good … Grunt.js may fit in there somewhere if ANT tasks for minify aren’t simple.

What’s in empty

empty supports a number of commonly needed task features like

  • create a compressed .zip of all your project files
  • copy the zip to your DropBox folder
  • works with a Mac and Windows
  • currently supports 4 dev, test and staging environments
  • basic edit / replace by tags of your readme markdown file
  • saves your as readme.txt to the distribution .zip

How to Get started with empty?

Download / fork the project from Bitbucket

Save all the files into your WordPress plugin project directory
Make sure you have Java and Apache Ant installed 🙂

Start by editing and enter the name of your plugin.

Then open Terminal or your CLI editor .. and type


If it’s going well .. you’ll see this …

Damiens-MacBook-Pro:empty damien$ ant
Buildfile: /wp-content/plugins/empty/build.xml

Total time: 1 second
Damiens-MacBook-Pro:empty damien$


Build your plugin compress .zip


This will ..

– delete the temp build folders
– make the build directories
– copy all the required project files to a new folder
– zip the finished project


[php]ant make[/php]

and you’ll see

Damiens-MacBook-Pro:empty damien$ ant make
Buildfile: /Volumes/Proust/Sites/dev/wp-content/plugins/empty/build.xml

[delete] Deleting directory /Volumes/Proust/Sites/dev/wp-content/plugins/empty/build
[delete] Deleting directory /Volumes/Proust/Sites/dev/wp-content/plugins/empty/dist

[mkdir] Created dir: /Volumes/Proust/Sites/dev/wp-content/plugins/empty/build
[mkdir] Created dir: /Volumes/Proust/Sites/dev/wp-content/plugins/empty/build/empty
[mkdir] Created dir: /Volumes/Proust/Sites/dev/wp-content/plugins/empty/dist

[copy] Copying 6 files to /Volumes/Proust/Sites/dev/wp-content/plugins/empty/build/empty
[copy] Copying 2 files to /Volumes/Proust/Sites/dev/wp-content/plugins/empty/build/empty/css
[copy] Copied 1 empty directory to 1 empty directory under /Volumes/Proust/Sites/dev/wp-content/plugins/empty/build/empty/js

Total time: 0 seconds
Damiens-MacBook-Pro:empty damien$


HOW TO Get Started with WordPress Multisite – build it in 5 minutes

WordPress Multisite or WordPress Network or WPMU – any of these refer to WordPress when it has been setup as a network of blogs or websites.

I’ve been using WordPress Multisite for about 3 years now – many more famous WordPress people have written about setting up WordPress Multisite, but this is my take on it.

I want to show you that it is easy to get started with WordPress Multisite in fact you can have your network of WordPress sites up in under 5 minutes (supposing you already have WordPress installed).


How to Enable WordPress Multisite

WP-Config – Enable Multisite

Open your favorite editor and then open wp-config.php which is in the root of your WordPress directory.

Insert these 2 lines in your wp-config.php file, save the file.

Wp_config multisite

/* Multisite */
define(‘WP_ALLOW_MULTISITE’, true);

WordPress Admin – Network Settings

Login to WordPress Admin and turn off all your plugins first … then go to the link for Network Setup.

Follow the instructions carefully and edit your wp-config.php again … and also edit your .htaccess file.

Then you’re all done.

Network Setup ‹ Network Admin WordPress

WP-Config – Additional Settings

Add these extra changes to wp-config.php

define(‘MULTISITE’, true);
define(‘SUBDOMAIN_INSTALL’, true);
define(‘DOMAIN_CURRENT_SITE’, ‘’);
define(‘PATH_CURRENT_SITE’, ‘/’);
define(‘SITE_ID_CURRENT_SITE’, 1);
define(‘BLOG_ID_CURRENT_SITE’, 1);

If you wanted, you can delete the 2 lines you added before – but this will hide the Network Settings menu links.

.htaccess – Multisite Rewrite Rules

Add these to your .htaccess file, replacing all the existing WordPress rules. If you can’t save the .htaccess file, or you can’t access wp-admin after making these changes, then check your permissions on the file or check with your ISP that Permissions are set properly including Allow Overrides=On for your virtualhost file.

RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]

# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*.php)$ $1 [L]
RewriteRule . index.php [L]



Once you’ve saved both the WP-Config.php and .htaccess files – then click the link to Log back in.

You’re all done here … Now you can go to the Network Settings Admin page and setup your new WordPress Multisite.

Network Settings Network Admin WordPress