+ Reply to Thread
Results 1 to 5 of 5

Thread: cton setup filepath

  1. #1
    Member akp35 is on a distinguished road
    Join Date
    May 2011
    Posts
    30

    CRON setup filepath

    I have a php file to be run as cron
    It's located under public_html folder >

    What should i write in the command text box for file path?
    currently i have this, but it doesn't run at the moment

    /home/user_name/domains/mysite.com/public_html/cron.php

    please help
    Last edited by akp35; 09-28-2011 at 05:33 AM.

  2. #2
    Moderator Gabrielius is on a distinguished road Gabrielius's Avatar
    Join Date
    Jul 2011
    Location
    Lithuania
    Posts
    100

    Re: CRON setup filepath

    Hello,

    Try to remove folder user_name

    Quote Originally Posted by akp35 View Post
    I have a php file to be run as cron
    It's located under public_html folder >

    What should i write in the command text box for file path?
    currently i have this, but it doesn't run at the moment

    /home/user_name/domains/mysite.com/public_html/cron.php

    please help

  3. #3
    Super Moderator Modestas is on a distinguished road Modestas's Avatar
    Join Date
    Jun 2011
    Posts
    1,859

    Re: CRON setup filepath

    Hello,

    You should replace user_name with your username and mysite.com with your domain name. If you have already done this, probably the problem will be in your script.

  4. #4
    Member akp35 is on a distinguished road
    Join Date
    May 2011
    Posts
    30

    Re: CRON setup filepath

    sorry for the confusion, user_name already has my actual user name and mysite.com already has my domain name it..
    now i have changed it to absolute link to file > http://domain_name.com/cron.php but still doesnt work..

    If i open the URL directly in a new window, the php file executes fine.. any suggestions???

  5. #5
    Member akp35 is on a distinguished road
    Join Date
    May 2011
    Posts
    30

    Re: CRON setup filepath

    Guys, I figured it out

    I need to specify absolute URL of the file along with WGET, (wget http://mydomainname_here.com/cron.php) in the cronjob command text box without the brackets and it works..


    thanks.

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34