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

CRON not seeing scripts as PHP (ongoign even since 8.6 update :-(

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

  1. alwoodman

    alwoodman Guest

    0
     
    Having recently updated to Plesk 8.6 i thought i better address some CRON issues i have had since i updated to 8.3 which caused all my LOG rotation to switch off...a problem which has been from the start is my CRON tabs are not being run or seen it appears as PHP scripts...

    really baffled!
     
  2. Amin Taheri

    Amin Taheri Golden Pleskian Plesk Certified Professional

    33
     
    Joined:
    Jul 5, 2007
    Messages:
    1,398
    Likes Received:
    1
    Location:
    Seattle Area
    how are you running the file?

    like

    php -f /var/www/vhosts/mydomain.info/httpdocs/RSS/doFilmBuild.php

    ??
     
  3. RajpalM

    RajpalM Guest

    0
     
    Yes, my cron job is like
    php -f /var/www/vhosts/mydomain.info/httpdocs/RSS/doFilmBuild.php

    but it's giving error
    php: command not found
     
  4. Amin Taheri

    Amin Taheri Golden Pleskian Plesk Certified Professional

    33
     
    Joined:
    Jul 5, 2007
    Messages:
    1,398
    Likes Received:
    1
    Location:
    Seattle Area
    Try using the full path to php - you can probably get it from a phpinfo() script if you dont know it.
     
  5. RajpalM

    RajpalM Guest

    0
     
    Yes, i am using full path like
    php -f /var/www/vhosts/prplettingagents.co.uk/httpdocs/admin/test.php

    See this url http://prplettingagents.co.uk/admin/test.php
    Note: I am adding new cron job from "Schedule New Task" My version is Parallels Plesk Panel 10.2.0

    Thanks
     
  6. Amin Taheri

    Amin Taheri Golden Pleskian Plesk Certified Professional

    33
     
    Joined:
    Jul 5, 2007
    Messages:
    1,398
    Likes Received:
    1
    Location:
    Seattle Area
    No, the full path to php

    /var/path/php -f etc
     
  7. RajpalM

    RajpalM Guest

    0
     
    What's my php path according this php info
    http://prplettingagents.co.uk/admin/test.php

    I have used
    /usr/bin/php -f /var/www/vhosts/prplettingagents.co.uk/httpdocs/admin/test.php
    but it's not working


    Please help
    thanks
     
    Last edited by a moderator: Jan 16, 2012
  8. Amin Taheri

    Amin Taheri Golden Pleskian Plesk Certified Professional

    33
     
    Joined:
    Jul 5, 2007
    Messages:
    1,398
    Likes Received:
    1
    Location:
    Seattle Area
    Well that would have been where I would think php is, /usr/bin/php - if you use that path does the error message change?

    if you have shell access go to a prompt and type 'which php' to see where the path is, if you dont have shell, ask your provider in the event its not in the standard location.
     
  9. Alexander Bechtold

    Alexander Bechtold New Pleskian

    19
    85%
    Joined:
    May 6, 2009
    Messages:
    16
    Likes Received:
    0
    Hey,

    we have Suse 11.4 and Plesk 10.4.4 the same Problem. We migrate from 9.5.4 and the crons doesn`t work. Se we take:
    /usr/bin/php
    /usr/bin/php -c -f

    and we put also the comand inside and outsinde the script, not want to run. When i do it in ssh, they work fine, without problems, bacuse i taste it as root.

    thanks for fast Support.
    Alex
     
Loading...