Author Archives: Andrew Wells

About Andrew Wells

I have been developing on the LAMP stack since about 2006. I run Ubuntu XFCE on my desktop and have a history of managing Ubuntu and CentOS servers. I code web applications mostly in PHP but have experience with other languages as well. When I'm not working, I can be found working in my home lab or out snowboarding, hiking, camping, or biking depending on the season.

Puppet

I build up and tear down servers often for testing and development. I use Puppet to assist with bringing up servers quickly. Using Puppet with Debian preseed files allows me to spin up a VM, walk away, and come back to a fully configured box – super cool!

Continue reading

Rescue a WordPress Install With Incorrect URL Settings

When moving existing WordPress installs around, you may find that the site becomes inaccessible because the site URL is contained in the database table, wp_options to be exact. In order to make this site accessible, the site URL option needs to be changed. Where can that be changed? From the admin center. On the website. Yeah, it’s a catch 22. But, there are several alternative ways to change this option, even if your blog is not accessible.

Continue reading

Test Passwordless SSH Authentication

I needed a way to test if I have a passwordless way to authenticate to another SSH system. This script is written in expect and basically attempts to ssh into the specified host. It assumes the user prompt will contain user@host.

I should also note that I wrote this with the intention of using it as a Nagios plugin for ssh checks. That is why it exists with the code of 2 (critical) or 3 (unknown) when there are problems.

Continue reading