How to run WordPress cron with WP CLI via crontab on Cloudways

cloudways application id image

Sometimes you need to run WordPress cron a non-standard way, in order to guarantee successful execution on a regular schedule. The issue with “standard” WordPress cron tasks (which are a pseudo cron in themselves) is these are processed upon certain triggers, which run under PHP as your admin is loaded. This can both slow life …

Read more

How to Block an IP Address from accessing your website

Looking to block a specific IP address from accessing your website? Maybe you saw some rogue activity, and its coming from a specific IP? Perhaps some IP address you can see spidering through all your content – and its not a search robot? Whatever the reason, if you’re looking to block a specific IP address …

Read more

How to: Find out Apache version from Command Line (SSH)

Have you logged into your server or VPS via command line (SSH – this is really the best and only way to do this now – Telnet is not going to encrypt your communications… this is bad!) and are now wondering how to quickly discover what version of Apache you are running? Find your Apache …

Read more

PHP 7.0 Reaches End of Life on 3 December 2018 😱

If you, like us, were thinking Christmas comes round faster and faster each year, then you’ll no doubt think it was only yesterday that the awesome improvements PHP 7.0 brought along with it hit our servers and started powering up our WordPress sites way better than PHP 5.6, which was itself cool for its era.

Read more

How to convert colours to black in images using ImageMagick

If you want to convert PNG (or similar) files containing, for example, icons which are in one colour (say green) to black, then the command below will do this. This can be especially useful for updating logos or icons on the fly in a file system, without breaking stride, over command line (SSH). Note you …

Read more