php & cron
Before upgrading to php 7.2, I had this cron job:
/opt/cpanel/ea-php70/root/usr/bin/php /home/example/public_html/billing/index.php cron >/dev/null 2>&1
I upgraded to 7.2, the cron job didn't automatically update (Where's AI when I need it?). A month goes by, my billing doesn't get done, I start digging and realized "ea-php70" needs to be "ea-php72".
Is there a better syntax to use in cron so that when 7.3 is released, my job will proceed as designed?
I see Softaculous uses /usr/local/cpanel/3rdparty/bin/php instead of /opt/cpanel/ea-php72 would that be better?
Please sign in to leave a comment.
Comments
0 comments