Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 4 of 4

This is a discussion on crontab in plesk in the VPS & Dedicated forum
In Plesk, my crontab looks like this: M:0 H:10 DM:* M:* DW:* /usr/lib/php /var/www/vhosts/mydomain/httpdocs/myscript.php When run through a browser, myscript works fine. However, nothing happens ...

  1. #1
    JPC Addict
    Join Date
    Aug 2004
    Location
    Canada
    Posts
    135

    crontab in plesk

    In Plesk, my crontab looks like this:

    M:0 H:10 DM:* M:* DW:* /usr/lib/php /var/www/vhosts/mydomain/httpdocs/myscript.php

    When run through a browser, myscript works fine. However, nothing happens at 10AM every day, not even a cron notification email.

    What am I missing?

  2. #2
    Free Knowledge
    Join Date
    Aug 2006
    Posts
    33
    try
    M:0 H:10 DM:* M:* DW:* /usr/lib/php -q /var/www/vhosts/mydomain/httpdocs/myscript.php

  3. #3
    JPC Addict
    Join Date
    Aug 2004
    Location
    Canada
    Posts
    135
    Quote Originally Posted by CFusion View Post
    try
    M:0 H:10 DM:* M:* DW:* /usr/lib/php -q /var/www/vhosts/mydomain/httpdocs/myscript.php
    Still nothing...

  4. #4
    JPC Dream Team
    Join Date
    Aug 2006
    Posts
    935
    uprightdog,

    It appears that you are using wrong path for PHP in your cron. The correct path is /usr/bin/php.
    Awais | Technical Support
    JaguarPC.com


    Helpful Links
    Current Specials | Knowledge Base | Network Status

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •