Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    301
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. creat

    creat Registered

    Joined:
    Jun 27, 2004
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    151
    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
    =========
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice