Skip to main content

What to put in cron command?

Comments

7 comments

  • sparek-3
    Are you using CloudLinux? What does the command which php show?
    0
  • David Colter
    What does the command which php show?

    # which php /usr/local/bin/php
    and # which ea-php72 /usr/local/bin/ea-php72
    0
  • sparek-3
    What about md5sum /usr/local/bin/php and cat /home//.htaccess Replace with the username that this cron is running under.
    0
  • David Colter
    What about md5sum /usr/local/bin/php and cat /home//.htaccess Replace with the username that this cron is running under.

    Thank you for replying. I don't understand what you are suggesting. cat returns no such file or directory
    Are you using CloudLinux?

    Yes
    0
  • sparek-3
    Well.... without direct answers to my questions, it's hard to diagnose anything. I would presume that /usr/local/bin/php is referencing a CloudLinux, alt-php binary instead of cPanel's PHP. So when you call cPanel's PHP directly - /usr/local/bin/ea-php72 - this works differently than when calling - /usr/local/bin/php - which is CloudLinux's version. But I would suggest that you talk to cPanel or CloudLinux if you have questions about this.
    0
  • sparek-3
    Additionally, if you are using CloudLinux and CageFS, you may get different results for /usr/local/bin/php whether you are logged in as root or if you are logged in as the user.
    0
  • David Colter
    Cpanel moderator, please close and/or delete this thread. The title is misleading.
    0

Please sign in to leave a comment.