When running all or most of ones client accounts on a cPanel server under PHP-FPM, making a change to PHP.INI in the usual ways has no effect. WHM Multi-PHP INI Editor does not work in the ‘normal’ way and nor do individual users’ cPanel account INI editors; in fact the way to make changes is (at time of writing) to … Read More
GDP Aaaaaargh! (aka GDPR)
This website is now, I think, fully GDPR compliant. Unless explicit consent is granted, it sets no cookies and performs no tracking other than that required for keeping the site and the server it sits on secure. I didn’t want to force visitors to have to click to hide yet another nagging cookie request slide-over and I didn’t want to … Read More
CouchCMS Shortcode for Automatic Image Resizing In RichText
I have a client that wants to use CouchCMS (an open source content management system) to add content to their website. The content varies, and the pages contain many images of different sizes – the originals of which are often very large. Manually resizing these images to create appropriately sized thumbnail and larger versions would be a very onerous task. … Read More
aeKee Offline Vault – No Account Needed
As an offline, working, vault backup for our registered users we’ve created a fully functional offline version which can be run from any form of storage you wish – for example it’s ideal run from a USB stick. (For ultimate security you can install a live OS on a USB stick (such as Elementary Linux, Porteus, Tails or Puppy Linux) … Read More
LastPass and SaltThePass
Password managers are obviously attractive targets for cybercriminals – but they’re considered by most to be better than any alternative. The thought of having my entire password manager vault/archive compromised was giving me cold sweats in the wee small hours. What else could I do though!? Then LastPass’s browser plugin was repeatedly shown to be highly insecure by Google Project … Read More
Solved: cPanel’s CPHULK, CloudFlare and X-Forwarded-For
At the time of posting, there is a feature request on the cPanel website which, if approved, would enable the admin of a cPanel server to have CPHULK act on the content of the X-Forwarded-For header in HTTP requests. https://features.cpanel.net/topic/have-option-for-cphulkd-to-action-on-x-forwarded-for cPanel feel this is a bad idea because the X-Forwarded-For header is easily spoofed. Which could lead to all sorts … Read More
Deleting Per Account cPanel Error Logs
cPanel does not rotate or in any way limit the size of the per-account error_logs which are created for each folder of each account on the server by Apache. Apache can be configured not to create them at all but they are extremely handy for debugging. They can of course become very large and hog a lot of disk space, … Read More
Setting Up Per IP Traffic Reports on cPanel Servers Step 1 of 2
Our cPanel server sees a lot of traffic to a lot of different websites. Under cPanel each site has its own access_log and error_log and there is no master global access log. There’s also no way we can find, even using plugins, to monitor and report traffic levels from any particular IP address. Something we’d like to do in order … Read More
Linux (cPanel) Server Daily Disk Usage And Large Directory Report
Our servers automatically warn by PushBullet, Email and SMS whenever disk space hits some threshold warning level, which is handy. If you’re reading this you’re probably aware that when a server’s primary disk becomes completely full, the server becomes inoperable. A situation best avoided! An issue though is that this alert can come at any time – and if disk … Read More
Batch Editing CloudFlare DNS IP with CloudFlare API in PHP
We have a lot of websites behind CloudFlare’s excellent firewall system. Sometimes we need to move a server to a new IP address necessitating the manual modification of a large number of CloudFlare DNS records in a large number of CloudFlare Zones. CloudFlare is great in that if you modify a DNS record the effect is immediate – so a … Read More