Coding

[SOLVED] Allow WordPress to accept plus (+) sign in usernames

It was revealed to me recently that a wordpress system which programatically creates user accounts via an external api, where we only allow email addresses as the username, anyone submitting a + sign in the username, the plus sign (+) was being stripped out. For...

[Solved] Turn off 2FA on WHM with SSH Command Line

[Solved] Turn off 2FA on WHM with SSH Command Line

This morning I tried logging into one of my WHM servers with 2FA and it was not working. (BTW: If you don't have 2FA setup on your WHM login page then you are missing a great security feature on your Cpanel server). I checked the Cpanel forums and found a...

[SOLVED] Using mysql_query in WordPress After PHP 5.5

Okay, I am a bit old skool and still use mysql_* and yes I can hear some of you sighing, face palming yourselves and rolling your eyes but I have built thousands of sites over the years, many of you were in diapers when I started and I guess I have been a little slow...

[Solved] CTRL + C between Mac and Remote Windows Machine

[Solved] CTRL + C between Mac and Remote Windows Machine

I use a mac as my main machine, but very often I need to login to remote windows machines using Windows Remote Desktop for Mac to either work on native windows applications or do server tasks. Making the mental switch though between CMD + C and CTRL + C quite often...

[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...