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.

cron error

Discussion in 'General Discussion' started by Thorgalalix, Jan 16, 2015.

  1. Thorgalalix

    Thorgalalix Registered

    Joined:
    Nov 15, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    hello everyone,
    I try to setup my cron but i receive from my cron email this error.

    X-Powered-By: PHP/5.4.14Content-type: text/html
    This script must be run from the command line.

    /path/to/humhub/protected/yiic

    I realy don't where my error is from
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    Can you please try to add php -q in your cron command and check again
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  4. mageshm

    mageshm Well-Known Member

    Joined:
    Apr 17, 2014
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Chennai, INDIA
    cPanel Access Level:
    DataCenter Provider
    @Thorgalalix,

    Ary you trying to run ".php" file ? If so, use the below format.

    * * * * * /usr/local/bin/php /file path
     
Loading...

Share This Page