Results 1 to 3 of 3

Thread: how to set cron jobs

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    3

    Question how to set cron jobs

    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. #2
    Member sawbuck's Avatar
    Join Date
    Jan 2004
    Posts
    1,342
    cPanel/WHM Access Level

    Root Administrator

    Default

    Should be something like:
    /usr/local/bin/php /home/"account name"/encan/cron.php

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge jester.ro's Avatar
    Join Date
    Feb 2004
    Location
    Bucharest, Romania
    Posts
    304

    Default

    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

Similar Threads

  1. Help with cron jobs
    By systemtek in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 07-21-2006, 02:48 PM
  2. Cron Jobs
    By mbs5 in forum New User Questions
    Replies: 1
    Last Post: 06-28-2005, 12:35 PM
  3. Cron Jobs
    By TitaniumHosting in forum cPanel & WHM Discussions
    Replies: 5
    Last Post: 02-01-2005, 08:47 PM
  4. Cron Jobs
    By wipl_piyush in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 02-07-2004, 02:24 AM
  5. cPanel cron jobs or cron.daily , cron.hourly , etc.?
    By spaceman in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 01-01-2004, 07:16 PM