Hello, I move some websites and now I need setup a cronjob. On old panel I was use /opt/php-8.1/bin/php -c /var/www/builder/conf/php81/ -f /var/www/builder/htdocs/sp/cron.php
How I need rewrite it? That it will be working on enhance v12?
SeLi
Try this
/usr/bin/php -f /var/www/builder/htdocs/sp/cron.php
And behind some like this >/dev/null 2>&1 not need? And this: /var/www/builder/htdocs/sp/cron.php cant be the right path on enhance v12...
Yes, add > /dev/null 2>&1 to your root cron jobs if you want to avoid email notifications about them.
> /dev/null 2>&1
For the path, you need to use the correct one. It should look something like this:
/var/www/site-id/yourcron.php
Seems work. 🙂
And if we want call a website via cron it is like this:
wget -q -O /dev/null "https://domain.tld/cron.php"
Or how?
I have the same problem getting this to work with wget -q -O -
how should I solve this try curl?
Steamon why use wget? Use php or curl
xyzulu
Wpallimport recommands that I am trying curl now.
Steamon for Wordpress cron, I suggest you use the wp cli cron job command instead.
xyzulu My Knowledge of wp cli is not that huge I can look into it thanks.