Hi, i have 3 instances of cyberpanel in 3 different cloud server with ubuntu 20.04 LTS.
All of them have the same problem.
The cron jobs are not working.
I add the cron jobs for WP Import in the command but they are not even shown.
The command i used is
/usr/bin/curl “https://mysite.com/wp-load.php?import_key=mykeyf&import_id=1&action=processing”
Anyone please have any idea on why? I also did update today to latest commit. But still nothing…
Hello @Alexander Happy you are here
Add a cronjob through CYberPanel 7 - Cron Jobs
They are already created inside cyberpanel. The issue is that they just dont work
Did you disable wordpress cron by adding define( 'DISABLE_WP_CRON', true);
to wp-config
Sidenote always add a sink for your cronjobs its just good practice
did you run this on terminal and share the out put from there?
I just added it. Just curious, what does DISABLE_WP_CRON has to do?
If i try to run the command directly from CLI they work fine
@Alexander
Does this request need root/sudo permissions? You need to add it to /var/spool/cron
for AlmaLinux and /var/spool/cron/crontabs/
for Ubuntu e.g.
Run nano /etc/crontab
add it like this:
* * * * * root /usr/bin/wget -O - https://mysite.com/wp-load.php?import_key=mykeyf&import_id=1&action=processing >> /home/mysite.com/public_html/cron.log
On CyberPanel , personally i prefer wget did you try a cronjob e.g. what I would do
wget -q -O - https://mysite.com/wp-load.php?import_key=mykeyf&import_id=1&action=processing >/dev/null 2>&1
Perfomance. Maybe there is too much traffic causing the cronjob not to run or fail since wpcron jobs are running at sametime
You would not know what is causing it not to run since you have no sink