Mobile app version of vmapp.org
Login or Join
Radia820

: 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

@Radia820

Posted in: #Cron #Plesk

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Radia820

1 Comments

Sorted by latest first Latest Oldest Best

 

@Jamie184

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme