: I have trouble setting up a cron job in Plesk after reading documentation. How do I do this right? I have a WordPress plugin which doesn't work with WordPress' cron. I don't know why, it
I have a WordPress plugin which doesn't work with WordPress' cron. I don't know why, it just doesn't, so I had to move the cron job to server side.
At the moment I'm using
php --no-check-certificate example.com/path/to/file.php
The full code is:
*/10 * * * * php --no-check-certificate example.com/path/to/file.php
I read that I had to add --no-check-certificate considering it's https.
I tried simplywget example.com/path/to/file.php, but didn't work. Any idea how I can make it work?
More posts by @Radia820
1 Comments
Sorted by latest first Latest Oldest Best
Is the cronjob supposed to access a web location via HTTP in order to make it execute instead of not directly executing it with the PHP executable?
Shouldn't it be something like:
*/10 * * * * wget -O /dev/null --no-check-certificate example.com/path/file.php
Also, --no-check-certificate is a switch of wget, not php.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.