Help with a cron job

Discussion in 'Site & Server Administration' started by ferrari353, Apr 4, 2010.

  1. #1
    I hope this is the right section.
    Okay so in the install.txt file of a script I got, it says:

    1. Add this line below as a cronjob to run every 10 minutes:
    php -e /home/cpanel_username/public_html/admin/ cron-job.php > /dev/null
    Make sure to replace both cpanel_username and admin with the actual names for those two folders.
    The cpanel_username is your actual cPanel Access Username and the includes should be changed if
    you renamed the /includes/ folder of your installation.

    In my file manager, it says home3, so should I change it to home3? and then is cpanel_username the username next to home. Mine says (/home3/username) Is that what the cpanel_username should be? Just want to make sure I have everything right. Also, what should I put as the email where the cron job output will be sent? Thanks!
    Greg
     
    Last edited: Apr 4, 2010
    ferrari353, Apr 4, 2010 IP
  2. mnvlxxx

    mnvlxxx Peon

    Messages:
    47
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The path should look like the one you see on file manager. So i think you are on the right way :)
     
    mnvlxxx, Apr 4, 2010 IP
  3. ferrari353

    ferrari353 Peon

    Messages:
    183
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    so should it be like this: php -e /home3/trafficd/Bestinternetforum.com/raffle/admin/ cron-job.php > /dev/null
    right? right now, I'm setting it up as a test on my other domain. So, that's why it's like that. so like that? Because I don't want to do it then find out I did it wrong or something.
     
    ferrari353, Apr 4, 2010 IP
  4. mnvlxxx

    mnvlxxx Peon

    Messages:
    47
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It should be like this: php -e /home3/trafficd/public_html/raffle/admin/cron-job.php > /dev/null

    or like this if website is stored on www root folder (public_html):
    php -e /home3/trafficd/public_html/admin/cron-job.php > /dev/null
     
    mnvlxxx, Apr 4, 2010 IP
  5. ferrari353

    ferrari353 Peon

    Messages:
    183
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    no, bestinternetforum isn't the main domain. It's an addon domain, so it's not in public_html.
     
    ferrari353, Apr 4, 2010 IP
  6. mnvlxxx

    mnvlxxx Peon

    Messages:
    47
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    If you can see that path on filemanager it should be fine :)
     
    mnvlxxx, Apr 4, 2010 IP
  7. thuankkk

    thuankkk Active Member

    Messages:
    503
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    95
    #7
    Hi ferrari353,

    You can set the cron job command like this:
    lynx --dump http://www.bestinternetforum.com/admin/cron-job.php
    Code (markup):
    (Replace /admin/cron-job.php with actual location. )

    Hope it helps :)

    Best regards,
    Nguyen An Thuan.
     
    thuankkk, Apr 4, 2010 IP
  8. ferrari353

    ferrari353 Peon

    Messages:
    183
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    now, it's win-that-prize.com but the stupid script is screwed up....but I guess I get what I pay for....
     
    ferrari353, Apr 5, 2010 IP