The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to set cron jobs

Discussion in 'General Discussion' started by Archon, Jul 13, 2004.

  1. Archon

    Archon Registered

    Joined:
    Mar 8, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi, I have script cron.php that I want to run in cron job. the path to the file is mywebsite/encan/cron.php
    What is the correct writing of the path for cron job?
    thanks
     
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Should be something like:
    /usr/local/bin/php /home/"account name"/encan/cron.php
     
  3. jester.ro

    jester.ro Well-Known Member
    PartnerNOC

    Joined:
    Feb 6, 2004
    Messages:
    304
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bucharest, Romania
    cPanel Access Level:
    DataCenter Provider
    find out where the php binary is located
    on my servers is located in
    /usr/local/bin/php


    then as the command, put this:

    /usr/local/bin/php -f /home/your_username/public_html/encan/cron.php
     
Loading...

Share This Page