Skip to main content

cronjob not working as expected

Comments

7 comments

  • cPanelMichael
    Hello, Is this PHP hosted locally or remotely? If it's hosted locally, try using the "php" command instead. EX:
    php /home/$username/public_html/file.php
    Thank you.
    0
  • alexthemaster
    hi is localhost but the script work only whit remote command. in my old server whit Webmin working in new server on cpanel no. tnks
    0
  • cPanelMichael
    Hello, Cron jobs created within cPanel can only access binaries available within the Jailed Shell mounts. To enable lynx or additional custom binaries for a user, you must create a custom Jailed Shell mount. The steps for this are documented at: How to Create Custom Jailed Shell Mounts - cPanel Knowledge Base - cPanel Documentation However, I suggest using an alternative such as "curl" instead. EX:
    curl -s https://domain.tld/file.php"
    Thank you.
    0
  • alexthemaster
    ok perfect. what is the contenute standard file crontab root? tnks
    0
  • cPanelMichael
    Hello, The root crontab is stored at: /var/spool/cron/root Thank you.
    0
  • alexthemaster
    ok but i have chenge this file . what is the standard file?
    0
  • cPanelMichael
    Hello, Could you elaborate on your last question? For instance, what do you mean by standard file? Thank you.
    0

Please sign in to leave a comment.