My Local WordPress Development Environment

I just spent part of the day setting up and  testing my local sandbox environment using the following tools.

Operating System
Peppermint 8 running LAMP and WordPress

Plugins

  • WP Local Toolbox – Creates the Admin Bar notification so I know I’m still in the right place just in case I end up on my live server
    • Normally I won’t use plugins that haven’t been updated in the last year or so but this is just for testing code and looking for conflicts.
  • Debug Bar – It’s always happy hour at this bar. Used to hunt down more information and make sure everything is nice and lean.

Other tools

I’m also using phpMyAdmin to drop and import tables. I could do this in the terminal but hitting those red buttons is a lot more fun.

Tables tables tables
Never name your kid DROP tables. xkcd

I drop everything except wp_usermeta and wp_users

  • wp_commentmeta
  • wp_comments
  • wp_links
  • wp_options
  • wp_postmeta
  • wp_posts
  • wp_termmeta
  • wp_terms
  • wp_term_relationships
  • wp_term_taxonomy

I then import my site’s sql backups after changing my domain references from linuxbookpro.com to localhost so it won’t redirect to my live website.

I also replace my wp-content folder from the default wordpress installation with the one from my backup.

This isn’t a step by step guide I had to do a few apache permissions but it all seems to be working nicely.

Happy hacking.

P.S. this is really just here for me to discover later when I forget something I did.

Why I use Jetpack to track what’s unpopular

Tracking has become synonymous with spying. What information should I collect, why is it collected and what will I do with it.

First it should provide value to the readers

It sounds squishy and it is. In short, any data collected should do something for the consumer. In this case myself and my readers.

Jumpack Stats from June 14
Jumpack’s statistics page from June 14.

I recently added a paid version of Jetpack to my website for daily backups, anonymous viewing statistics and video hosting. As a result it brought along with it nearly a dozen third party trackers, Specifically 11 on my homepage. While I’m not thrilled at the number at least it’s clear who is tracking this information.

Trackers installed along with Jetpack.
Trackers installed along with Jetpack.

All 11 are domains are owned by Automattic and most are specifically heading to wp.com which redirects to WordPress.com and not a random advertisement or “service” relentlessly tracking your every move. Jetpack is a WordPress.com service so this looks good to me.

By providing basic statistics, I can now research whether a post is viewed or is mostly ignored.

Largely no one viewed my Cold Brew and GTD post.

So how does this provide value?

  1. Google Plus didn’t care about my Coffee and Reading post where I shared it.
  2. I didn’t properly tag the post’s subject “Getting Things Done” maybe that would have helped.
  3. The post didn’t resonate, perhaps I should stick to Instagram coffee postings.
  4. Readers of my website just don’t come here for this stuff.
  5. No one is reading this.

Tracking should be anonymous and not follow people around

Don’t be creepy, if someone views your blog post the last thing they want to see  are ads loosely related to the subject elsewhere tomorrow.

Tracking services should clearly describe what they collect, how they do it, and what it’s used for. I think Automattic does a good job on their Privacy Page. So lets give this a go and see if I can improve my site.

My favorite WordPress 16.04 setup guide

Hacking my live installation led to losing my WordPress site a few months back. But, the best lessons are learned through stupid mistakes.

Since I’m no longer cowboy coding here is my favorite guide to installing a WordPress server on an Ubuntu 16.04 system.

Additionally I added a “must use plugin” or “mu-plugin” to identify the local server via a wp-local toolbox which provides a customized admin bar.