How to setup Dolphin cron job?

Discussion in 'PHP' started by aliweb, Apr 29, 2010.

  1. #1
    Hi,

    I just installed Dolphin, the social networking script from Boonex and setup cron job as described by Dolphin during installation. This is my cron job command:

    cd /home/webmaster/public_html/XXXXXXXXXXX.COM/periodic; /usr/local/bin/php -q cron.php
    Code (markup):
    This job is being run every minute and I am getting the following email every time it runs:

    I want to know if the job is running fine and this is just a warning message? I mean if you have setup Dolphin before, can you tell me if I setup the cron job correctly!?

    Thanks
     
    aliweb, Apr 29, 2010 IP
  2. LiquidWebBenny

    LiquidWebBenny Greenhorn

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #2
    First: I suggest changing this:

    cd /home/webmaster/public_html/XXXXXXXXXXX.COM/periodic; /usr/local/bin/php -q cron.php
    Code (markup):
    to this:

     /usr/local/bin/php -q /home/webmaster/public_html/XXXXXXXXXXX.COM/periodic/cron.php
    Code (markup):
    Do you know what the cron is supposed to do? Once the cron is set, you should be able to tell if it is working, by checking to see if it is doing what it's supposed to be doing.

    If you are still seeing that error afterward, try addressing the error that's there.
     
    LiquidWebBenny, Apr 29, 2010 IP
  3. aliweb

    aliweb Well-Known Member

    Messages:
    250
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #3
    Yes but in this case I don't know what this cron will do because this command was given to me by Dolphin CMS and it doesn't explain what it does. Anyway I changed the way like you said and getting the exact same email which means my previous command was also correct and I need to fix the warnings that I am getting in email!!?!
     
    aliweb, Apr 29, 2010 IP
  4. SunShellNET

    SunShellNET Peon

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    cd /home/webmaster/public_html/XXXXXXXXXXX.COM/periodic; /usr/local/bin/php -q cron.php

    this will work the same way as the second one.
     
    SunShellNET, Apr 29, 2010 IP
  5. SunShellNET

    SunShellNET Peon

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    And for dolphin it will through error if register global is set ON
     
    SunShellNET, Apr 29, 2010 IP
  6. aliweb

    aliweb Well-Known Member

    Messages:
    250
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #6
    So that means cron is working fine and I just need to set register_globals and allow_url_include to OFF!?
     
    aliweb, Apr 29, 2010 IP
  7. SunShellNET

    SunShellNET Peon

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Yes. Try that.
     
    SunShellNET, Apr 29, 2010 IP
  8. www.CaseyEquip.com

    www.CaseyEquip.com Peon

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Hi,
    If you don't know anything about cron, I would suggest to contact the support of your hosting provider they will help you and you will be good to go in 5 minutes ;) Fastest way!
     
    www.CaseyEquip.com, May 2, 2010 IP
  9. aliweb

    aliweb Well-Known Member

    Messages:
    250
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #9
    I did and it didn't help.
     
    aliweb, May 2, 2010 IP