My backup schedule Not working and I Set a cyberpanel Cron Job but Nothing Works

I noticed that my backup plugin was not working, so I checked my events and schedule with the WP Control Plugin, and it was not working, according to my understanding. so I disableed wordpress native cron and add new cron with help of page : I Set a Cron Job but Nothing Works
To be completely honest, I know very little about this code. I need to run my backup plugin every 4 hours. Therefore, if someone can help me, it would be a great help.


Hello @ruwan Happy you are here

wp cron jobs aren’t actual cron jobs therefore for you to run them as actual cronjobs on CYberP start by disabling cronjobs in wordpres if you have identified that they actually do not run.

Add to wp-config.php:

/** WP-Cron has been disabled **/
define('DISABLE_WP_CRON', true);

On cyberpanel:

wget -q -O - https://adsup.lk/wp-content/plugins/entsidebyside/trigger.php >> /home/adsup.lk/public_html/output.txt
# or
php https://adsup.lk/wp-content/plugins/entsidebyside/trigger.php  >> /home/adsup.lk/public_html/output.txt

Actually if you run curl https://adsup.lk/wp-content/plugins/entsidebyside/trigger.php there should be an expected output that it works before you create a cronjob.

[quote=“josephgodwinke, post:2, topic:38570”]
wget -q -O - https://adsup.lk/wp-content/plugins/entsidebyside/trigger.php >> /home/adsup.lk/public_html/output.txt
[/quote] Thank you for replying to me to help … I define(‘DISABLE_WP_CRON’, true); This code already added… If i add corn job like this is that ok?

Have you checked to see if it is running as expected try run it every sec

Hi
I added (wget -q -O - https://adsup.lk/wp-content/plugins/entsidebyside/trigger.php >> /home/adsup.lk/public_html/output.txt) code and site backup start to work but i noted that the increase 3 site health suggestion more. please kindly explain me what is the reason and how to solve this.



After I bypassed the Cloudflare Proxy, these 3 health suggestions are gone…