/bin/sh: php: command not found - cronjoberror with godaddy hosting

4 replies
I have installed viral inviter on my godaddy deluxe linux hosting. My cronjob email is getting an error message as below and not sending invitation message.

/bin/sh: php: command not found


any help?
#command #cronjoberror #found #godaddy #hosting #or bin or sh #php
  • Profile picture of the author radhika
    Can you post whole cron job path?

    Why are you running it from .sh comand? Author instructions?

    .
    Signature
    Follow up Autoresponder PRO :: 33% Discount!!
    FREE Upgrades! IMPROVED Email Deliverability!!
    {{ DiscussionBoard.errors[296284].message }}
    • Profile picture of the author kumar
      Shafiq,

      I hope you also tried checking with Godaddy's technical support team. With due respects to the Warriors, the Godaddy team would be the best people to answer this query.
      Signature

      Life is not a sprint, its a marathon. A bad start does not really matter too much

      {{ DiscussionBoard.errors[296297].message }}
      • Profile picture of the author Shafiq Kamal
        I am using godaddy's linux shared deluxe hosting. I have inserted the following cronjob command:

        php /home/content/z/u/b/zubair/html/money/inviter/inc/php/sendinvitation.php


        But getting error message in cronjob output email inbox as below:

        /bin/sh: php: command not found
        {{ DiscussionBoard.errors[296522].message }}
        • Profile picture of the author Neil Morgan
          There are 2 possibilities:

          1. PHP is not installed as a binary (don't worry about the technical term) and therefore cannot be used in this way to run php scripts.

          or

          2. PHP is installed as a binary but needs the absolute path to the PHP interpreter to be specified.

          Like this:

          /usr/sbin/php

          Note that this path is just an example and unlikely to work for your server. You will need to ask your host if PHP is installed as a binary and if so, what is the path to it for use in your cron task definition.

          Cheers,

          Neil
          Signature

          Easy email marketing automation without moving your lists.

          {{ DiscussionBoard.errors[296684].message }}

Trending Topics