Welcome to the blog of Craig Edmonds

This page lists my businessey type posts, but if you want to see some of my personal bloggings, click here.

[SOLVED] Force SSL and WWW on Sub Domain with .htaccess

I had someone today who was having some issues with their financial site and the SSL cert so I solved the main issue but noticed that visitors could navigate to https://www.{subdomain}.{domain}.com (with www). Ideally, to keep things clean, they need to go...

[SOLVED] – Simple WordPress xmlrpc.php Attack Prevention

[SOLVED] – Simple WordPress xmlrpc.php Attack Prevention

Unless you have a decent WAF checking hack attempts on your server, then you are going to succumb to some serious overloading. One of the favourites of hackers and comment spammers is attacking the xmlrpc.php file which comes as standard on your WordPress install. If...

[SOLVED] – merge tags issue with gravity forms + blank emails

I came across an issue recently where the merge tags from the admin notifications in Gravity Forms were coming out blank when the email notification arrived to the inbox. Also, the email was not being inserted into the entries section of Gravity Forms. This situation...

How to Install MEMCACHE on Cpanel Server and WordPress

How to Install MEMCACHE on Cpanel Server and WordPress

I have read some good things about memcache and apparently facebook uses it, so thought it must be fairly decent. I wanted to test it out on one of my WordPress sites which is hosted on one of my dedicated servers running WHM/Cpanel. Lets Go! 1. Install MemCache onto...

Send Email When Windows VPS Starts Up with Batch File

I have some windows vps servers and when they are restarted I want to receive an email when they do, just so that I know what's going on. After some searching I found a great, free little utility called mailsend.exe mailsend is not fancy and can only be run through...

Auto Reboot Windows 7 Enterprise Every X Hours

Auto Reboot Windows 7 Enterprise Every X Hours

I am running a bunch of vps servers which run Windows 7 Enterprise in order to run certain automated marketing software. However, I am noticing after a few hours, the cpu gets a bit high so want to auto reboot the vps's every 4 hours in order that the software runs on...

[solved] Gravity Forms with Javascript Validation

[solved] Gravity Forms with Javascript Validation

Gravity Forms (www.gravityforms.com), without a doubt is one of the best WordPress forms plugin out there, I have been using it since it was launched and is a brilliant tool and I have it in use on literally hundreds of web sites. However, recently I have had the need...

[solved] How to Delete Plesk Backups

[solved] How to Delete Plesk Backups

The following command can be used to delete all the backup files in a plesk server. cd /var/lib/psa/dumps/ rm -rf * When might you need to do this? You might find that your disk runs out of space due to the many automated plesk backups that are run and when you check...