Skip to main content

Execute php file via cron job?

Comments

2 comments

  • HostingH
    try : */15 * * * * /usr/local/bin/php /home/user/public_html/cron.php Its for per 15 mins
    0
  • cPanelMichael
    Hello, The previous post is correct. You'd use a command such as:
    /usr/local/bin/php /home/username/public_html/path/to/cron/script
    Here's the document for the cron job option within cPanel: Cron Jobs - Version 68 Documentation - cPanel Documentation Thank you.
    0

Please sign in to leave a comment.