Path to PHP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • smartcard
    Junior Member
    • Mar 2004
    • 11

    #1

    Path to PHP

    I am on cpanel04

    I supposed to enter a PHP script for corn.

    Need to know what is the path to php?

    My command should look like:
    /usr/local/bin/php /home/domain/public_html/ticket/automail.php
  • sdjl
    Senior Member
    • Mar 2004
    • 502

    #2
    php /home/domain/public_html/ticket/automail.php

    That will do.

    You can silence the output with:

    php /home/domain/public_html/ticket/automail.php > /dev/null

    David
    -----
    Do you fear the obsolescence of the metanarrative apparatus of legitimation?

    Comment

    • smartcard
      Junior Member
      • Mar 2004
      • 11

      #3
      Getting the following error:
      Cron <domain@cpanel04> php /home/domain/public_html/ticket/automail.php

      <b>Fatal error</b>: Maximum execution time of 30 seconds exceeded in <b>/home/domain/public_html/ticket/automail.php</b> on line <b>38</b><br />

      Comment

      • KyleC
        Senior Member
        • Mar 2004
        • 291

        #4
        Use these commands to find php in SSH:
        which php
        or
        whereis php

        the path for php on my server is: /usr/local/bin/php or /usr/bin/php
        -Kyle

        Comment

        • Pedja
          Senior Member
          • Mar 2004
          • 329

          #5
          Originally posted by smartcard
          Getting the following error:
          Cron <domain@cpanel04> php /home/domain/public_html/ticket/automail.php

          <b>Fatal error</b>: Maximum execution time of 30 seconds exceeded in <b>/home/domain/public_html/ticket/automail.php</b> on line <b>38</b><br />
          Well, php is found, cron job script works but lasts too long.

          Comment

          Working...