Yes, I’d say it’s most likely MODSEC that’s being triggered, but I don’t want to turn it off just for that.
It is only the cron job that is triggering it and there are no on-screen errors. 139.99.9.74 is actually the server IP. I have created a blank 406.shtml file, which has stopped the cPanel error, but it’s still showing in the visitor log.
This server seems to be locked down a lot tighter than any I’ve used before.
Bizarre. I can’t see why they should want to stop cron.php from firing. That is, after all, a core part of WordPress / ClassicPress. Did they give any reason for blocking cron?
I have found other requests that have been killed by 406 as well, which is a pain. The only option is to turn modsecurity off or maybe look for a plugin that can do most of what modsecurity does.
This is annoying because it was looking like a good, fast host. I need a Singapore based one because Australian reseller hosting is too expensive. US and UK servers are too slow for me.
Maybe modsecurity setup wants a real browser…
Try curl https://mysite.com/my-cron.php?doing_wp_cron -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.89 Safari/537.36"
from command line to see if you get a 406…
Everything is working perfectly. The other calls that were also generating 406 errors no longer do so either.
My idea to clone the wp-cron.php file as my-cron.php got around the modsec rule, but I couldn’t get the cron job working. Simone’s modified command solved that issue.
The hosting company was of no help whatsoever, which is par for the course. Their fix was to turn off modesec, which is what most hosts tell people to do. It’s an easy fix for them, but they don’t tell customers the ramifications of doing that.
Members here have a wealth of experience and offer their help freely. That is something sadly lacking in the industry and is what makes ClassicPress such a breath of fresh air.
In a world that has gone mad, the calm and generosity of people here is something worth treasuring.
I had spent days searching for an affordable and quality host in Singapore and they are few and far between. To have it then throw this at me, really hurt. But now the work has been worth it.
I’m not sure what the forum policy is about promoting a particular host, but I’d like to say that UpCloud (a Finnish VPS company) has a Singapore data center. I’ve used 4 UpCloud servers (mine are in Frankfurt) with the RunCloud control panel for a few months now and am pretty impressed.
No problem. I don’t think I have any names to recommend at that price point - SiteGround are certainly way more (and I don’t recommend them anyway these days).