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 do you setup a php cron job?

Discussion in 'General Discussion' started by jobokoth, Jun 30, 2004.

  1. jobokoth

    jobokoth Member

    Joined:
    Dec 28, 2001
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Hi people

    I am wondering how to setup a php cron file in cpanel. I have tried GET> /path/to/file.php but the cron doesnt run at the defined time at all. Any ideas?

    Job
     
  2. creat

    creat Registered

    Joined:
    Jun 27, 2004
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    something like this in your crontab will help

    5/* * * * php -q -f /path/to/file.php

    this will parse the php file specified using the php binary every five minutes.

    =========
    be CREATive
    =========
     
Loading...

Share This Page