cron job not working
hi
i have set some cron jobs but its not working i i have set path like in cpanel
/home/user/public_html/domain.com/fetch/mov.php > /dev/null 2>&1
but its not adding anything in database i set some php path on there to get something and add them in database but still its not working commands not working i dont know why
may be cron job is disable or what is issue i have no idea
i m running centos 7 with cpanel whm latest version waiting thanks.
-
/home/user/public_html/domain.com/fetch/mov.php > /dev/null 2>&1
Hello, This is not a valid command. You'd need to use something such as:php /home/user/public_html/domain.com/fetch/mov.php > /dev/null 2>&1
Thank you.0 -
is that this is not valid path /usr/bin/php -q /home/user/public_html/domain.com/fetch/mov.php > /dev/null 2>&1 0 -
Hello, The path was valid, but you did not include the PHP command in your initial post. Information on using the PHP binary is documented at: EasyApache 4 and the ea-php-cli Package - EasyApache 4 - cPanel Documentation Thank you. 0 -
In addition to Michael's advice, i've found that my Magento crons don't run unless I use /usr/bin/php-cli instead of /usr/bin/php but that's probably circumstantial :) EDIT: Disregard the above! Not sure if something changed between 58 and 62 but /usr/bin/php-cli symlink doesn't appear to exist anymore so I updated my Magento crons to /usr/local/bin/php (which use the php-cli binary as per Michael's documentation link) 0
Please sign in to leave a comment.
Comments
4 comments