1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Path to php binary?

Discussion in 'Plesk for Linux - 8.x and Older' started by corman420, Jan 22, 2008.

  1. corman420

    corman420 Guest

    0
     
    I have a client who needs to run a cron job. I am using CentOS4 with Plesk 8.2.1 and the latets versions of PHP.

    Here is the command:
    /usr/bin/php /var/www/vhosts/DOMAINHERE/httpdocs/scripts/admin/jkcron.php > /dev/null

    I get the following output:
    -bash: /usr/local/bin/php: No such file or directory

    I tried /usr/local/bin/php with same results.

    I also tried:
    lynx --dump http://[B]DOMAIN[/B]/scripts/admin/cronjobs.php > /dev/null

    Can anyone point me in the right direction? (I have removed the domain URL for security reasons)

    Thanks in advance!
     
  2. Amin Taheri

    Amin Taheri Golden Pleskian Plesk Certified Professional

    33
     
    Joined:
    Jul 5, 2007
    Messages:
    1,398
    Likes Received:
    1
    Location:
    Seattle Area
    try running
    Code:
    which php
    
    For me that returns
    Code:
    /usr/bin/php
    
    So in my cron I run it as :
    Code:
    /usr/bin/php -f /path/to/file >/dev/null 2>&1
    
    if your getting
    Try making sure that the php file itself isnt looking for a binary somewhere....
     
Loading...