Help Needed in setting cronjob on lxadmin server

Discussion in 'Site & Server Administration' started by LbR, Jun 5, 2009.

Thread Status:
Not open for further replies.
  1. #1
    hey people i am having problem setting up cronjob on my vps server and i am using lxadmin.

    this is the command
    php -f path/core/background/process_manager.php



    help me
     
    LbR, Jun 5, 2009 IP
  2. gary4gar

    gary4gar Peon

    Messages:
    496
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Its very simple you should have search a little,
    Login to kloxo/Lxadmin
    Click on Cron Scheduled Tasks in Domain section. and follow simple onscreen instructions.you can do the same via Shell too!

    incase of problem, post back
     
    gary4gar, Jun 5, 2009 IP
  3. LbR

    LbR Banned

    Messages:
    970
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i did all these things but nothing worked :S
     
    LbR, Jun 5, 2009 IP
  4. gary4gar

    gary4gar Peon

    Messages:
    496
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    did you check the mail?
    whenever cron runs, it mails the complete log to the user.

    type mail in shell to see your main. if cron has run and surely you will get a mail
     
    gary4gar, Jun 5, 2009 IP
  5. LbR

    LbR Banned

    Messages:
    970
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #5
    i have setted it every 5 mins but the mail comes after every hour .

    someone suggested me this command :

    cd /home/admin/allx/advert/core/background/; /usr/bin/php -d error_reporting=E_ERROR -d safe_mode=off -f process_manager.php‏

    but in mail it says :

    Failed loading /usr/lib/php/modules/xcache.so: /usr/lib/php/modules/xcache.so: cannot open shared object file: No such file or directory
     
    LbR, Jun 6, 2009 IP
  6. thuankkk

    thuankkk Active Member

    Messages:
    503
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    95
    #6
    Hi LbR,

    In the past I tried to set cron job with the command "php -l /some/cron/script.php", but it doesn't work.

    Finally, I found the problem: as PHP is a module of Apache web server, it can run properly only when being executed from Apache (request to your web server).

    I think these commands may work as expected:
    
    lynx http://www.example.com/cron-jobs.php
    wget http://www.example.com/cron-jobs.php -O /tmp/temp.txt
    GET http://www.example.com/cron-jobs.php > /dev/null &2>1
    
    Code (markup):

    Or you can try my free cron jobs service: simply paste your URL and forget *nix command :D
     
    thuankkk, Jun 7, 2009 IP
  7. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #7
    It seems that one of the PHP modules is not loaded and causing the problem to run your cron properly.

    Kailash
     
    kailash, Jun 8, 2009 IP
  8. LbR

    LbR Banned

    Messages:
    970
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thanks All i will try these when my site will get up :)
     
    LbR, Jun 9, 2009 IP
  9. ravee1981

    ravee1981 Active Member

    Messages:
    712
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    60
    #9
    do you know that the owner of the lxadmin company committed suicide here in Bangalore a few days ago?
     
    ravee1981, Jun 12, 2009 IP
  10. LbR

    LbR Banned

    Messages:
    970
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Sorry didn't know about that.
     
    LbR, Jun 12, 2009 IP
  11. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #11
    Just an update, make sure that you are running latest version of lxadmin(Kloxo) and you have installed their patch which was released recently.

    Kailash
     
    kailash, Jun 12, 2009 IP
    LbR likes this.
  12. LbR

    LbR Banned

    Messages:
    970
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #12
    thanks and special thanks to thuankkk for his site ;)
     
    LbR, Jun 12, 2009 IP
Thread Status:
Not open for further replies.