Skip to main content

cron job not working

Comments

4 comments

  • cPanelMichael
    /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
  • mywish1
    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
  • cPanelMichael
    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
  • ItsMattSon
    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.