Yearly Archives: 2015

Recovering from a WordPress Hack

Last night I had the unpleasant discovery that this site’s WordPress had been “hacked”, with every post redirecting to an uploaded “this site has been hacked” variety of HTML file. I looked back and realized it happened on March 1st and mad at myself for not noticing sooner.

Fortunately it was pretty easy to clean up by zapping the database and restoring from a good backup (thankfully I have daily backups running).

The harder part is going to be recovering in Google’s view. Search queries as shown in Google Webmaster Tools dropped like crazy right away:

Search queries chart from Google Webmaster Tools
Search queries chart from Google Webmaster Tools

And here’s the corresponding crawl errors view:

Crawl Errors Chart from Google Webmaster Tools
Crawl Errors Chart from Google Webmaster Tools

Hopefully after a little time the Google crawler will see all those pages returned, but I’m guessing whatever page rank I had will be very slow to recover (if it ever does). In the meantime I’ve improved my WordPress security a bit more, updated to the latest of everything, and removed a few unused plugins. Next will be to set something up to notify me more quickly if this happens again.

DataStax Installer with Vagrant

I’ve continued to make improvements to my “Cassandra on Vagrant” project (Using Vagrant for Local Cassandra Development) which shows how to install open-source Cassandra or DataStax Enterprise in a variety of different ways. Using Vagrant is very helpful for local development and testing. Virtual images can be created very quickly and can be erased when done, keeping your primary development system clean.

Recently I added an example which uses the DataStax Enterprise (DSE) standalone installer which first appeared in DSE 4.5. The standalone installer normally runs in a graphical UI mode, but can also be run in an unattended mode which I’m using here.

To play with the examples, grab a copy of the Vagrant projects from GitHub: bcantoni/vagrant-cassandra. Once you have Vagrant and VirtualBox set up, check out example 5. DSE Installer and go through the setup.

On my Mac laptop, creating a 3-node DSE cluster takes less than 5 minutes. (The speed is greatly improved because we only need to download the installer once.) The installer has several options for running in unattended mode, so the installation can be customized as needed.

See the code and more details at bcantoni/vagrant-cassandra.