First check what PHP version you are running.
Then go to Add cron:
Because we are running PHP 8.0 and our URL is example.com/pinn/insertDataMain.php and let's say we are under test account, our CRON command should look like:
Code: Select all
php8.0 /home/test/web/example.com/public_html/pinn/insertDataMain.php > /home/test/php_cron.log 2>&1