1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

cron commands

Discussion in 'Apache' started by asgsoft, Mar 31, 2010.

  1. #1
    hey everyone!!

    I've been trying to get this command to work but no luck at all.

    Can anyone point out where it's going wrong?

    Thanks
     
    asgsoft, Mar 31, 2010 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    What are the permissions for the script you are trying to run?
     
    RHS-Chris, Mar 31, 2010 IP
  3. asgsoft

    asgsoft Well-Known Member

    Messages:
    1,737
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    160
    #3
    What do you mean by permissions?

    It's a php file which I have made!
     
    asgsoft, Mar 31, 2010 IP
  4. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #4
    You should have permissions for the file itself, whether it be 644, 755, or 777 or what ever other combination. If the permissions are incorrect, it may not be able to call the php interpreter to execute the file. I would suggest you talk with your host, as they would know the server setup, or, let me know if you have root access to the server, and we can go from there.
     
    RHS-Chris, Mar 31, 2010 IP
  5. asgsoft

    asgsoft Well-Known Member

    Messages:
    1,737
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    160
    #5
    oooh that sort of permission.

    It's on 644 at the moment/

    And what do you mean by root access? I don't think I have that. I am on a shared hosting account from hostgator using cPanel!
     
    asgsoft, Mar 31, 2010 IP
  6. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #6
    If you are on a shared host, try changing the files permissions to 755. If it still does not work, you may have to include the path to the php interpreter in the cron command, and you should contact HostGator for the correct info.
     
    RHS-Chris, Mar 31, 2010 IP
  7. asgsoft

    asgsoft Well-Known Member

    Messages:
    1,737
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    160
    #7
    OK I will set the permissions to 775 and see if that makes any changes.

    I will also try it with an additional "-q" so it would be:

    Hopefully that would all work!
     
    asgsoft, Mar 31, 2010 IP
  8. thuankkk

    thuankkk Active Member

    Messages:
    503
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    95
    #8
    thuankkk, Apr 2, 2010 IP