Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: mohammadnabil on March 02, 2022, 11:14:00 PM

Title: can not set cron job
Post by: mohammadnabil on March 02, 2022, 11:14:00 PM
i have installed Moodle under public_html ,
using PHP-FPM 7.4 
user name : ctt
the cron job do not run either manually o(http://[img][img])[/img][/img]r automatically
i use command :
/usr/local/bin/php /home/ctt/public_html/admin/cli/cron.php
Title: Re: can not set cron job
Post by: rcschaff on March 03, 2022, 12:21:33 AM
try

/opt/alt/php-fpm74/usr/bin/php  /home/ctt/public_html/admin/cli/cron.php


as your really want your cron to run on the same php version as your website.
Title: Re: can not set cron job
Post by: mohammadnabil on March 03, 2022, 12:39:42 AM
thank you so mush