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 I start a Cronjob with Cpanel/WHM?

Discussion in 'Database Discussion' started by Bigzed, Mar 10, 2005.

  1. Bigzed

    Bigzed Registered

    Joined:
    Feb 19, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    151
    Hey Guys,
    I'm using Cpanel and I'm trying to run a PHP Script but it's not working.
    It worked when I put "lynx --dumb" in front of the Path but my Provider told me thats not allowed.
    So what should I do?
    What Do I have to put in front of the Path/URL of the script?

    Thanks,
    Bigzed.
     
  2. germanette

    germanette Active Member

    Joined:
    Jul 26, 2003
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    151
  3. rodstewart

    rodstewart Active Member

    Joined:
    Feb 4, 2004
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Hamburg Germany
    cPanel Access Level:
    DataCenter Provider
    If i do that i get

    /bin/sh: line 1: GET: command not found

    Anyone knows why?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. jester.ro

    jester.ro Well-Known Member
    PartnerNOC

    Joined:
    Feb 6, 2004
    Messages:
    304
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Bucharest, Romania
    cPanel Access Level:
    DataCenter Provider
    if you just want to run a php script, this is the best way:


    /usr/local/bin/php -f /home/your_username/path/script.php

    (make sure the php binary is there, ask you host for the location)

    i would recommend against having the php script in your public_html, because sometimes crons are used to do some maintanace on a database for example, and allowing others to run the maintanance script at other times would be bad
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. rodstewart

    rodstewart Active Member

    Joined:
    Feb 4, 2004
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Hamburg Germany
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #5 rodstewart, Apr 8, 2005
    Last edited: Apr 8, 2005
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