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
cPanel Mailscanner Automatically Removes Non Local Spam Whitelist Rules
I added a spam whitelist rule to the file on my WHM/cPanel server: File: New rule in place: I added this because a lot of mail from ‘a-special-domain-name.co.uk’ was being tagged as spam and disappearing. But in a daily cron task, cPanel went ahead and removed the rule automatically and emailed me about it: How annoying! It turns out that … Read More
CloudFlare Free Full SSL; Not As Secure As You Think?
CloudFlare offer the option to provide SSL for your website without the hassle or expense of obtaining an SSL certificate. It really is quite a hassle and it’s definitely expensive (relatively) so this is brilliant, especially as Google do rate an SSL site higher than a non-SSL one. All you have to do is put your site behind CloudFlare and … Read More
Adding CPanel/WHM cPHulk IP Blocks to CSF & CloudFlare
I’m running ConfigServer Firewall with its associated LFD (Login Failure Daemon) on one of my servers. LFD I believe does much the same job as cPHulk but advice I found online suggests that if resources aren’t hogged then enable both for a stronger setup. cPHulk has (in the CPanel/WHM control panel) an option to run an external command when an … Read More
Getting a cPanel/WHM Server to Email Pending YUM Updates
I used to try to remember every day to log in to my server and check if there were any manual updates needed (these can be kernel updates etc etc) by running this command: This outputs the list of mirrors and then a list of any packages with updates available for them. Problem is it’s a bit of a pain … Read More
Automatically Expiring CloudFlare IP Blocks by Age
In my last post I talked about how to automatically add IP blocks to CloudFlare from your own server. I also talked about the problem that could lead to, which is potentially 1000s of IP blocks mounting up over time (leading to firewall performance issues, and hitting your CloudFlare IP block limit). I mulled over the best solution to this … Read More
Automatically Adding ConfigServer Firewall (CSF) Firewall Blocks to CloudFlare
Unfortunately, having mod_cloudflare installed on ones server does not mean that the server’s front-end firewall (ConfigServer Firewall in one instance for me) sees the correct remote IP address for requests routed via CloudFlare. It appears mod_cloudflare (which is after all an Apache ‘mod’) works great for applications querying the REMOTE_ADDR server value from within Apache, but in many cases the … Read More
- Page 1 of 2
- 1
- 2