+ Post New Thread
Results 1 to 8 of 8
Virtual Learning Platforms Thread, Cron (Moodle/ Corn.php) on Ubuntu 8.04lts in Technical; Hi All I am trying to setup moodle/admin/cron.php on ubuntu 8.04lts. (schedule tasks) I have set it up to run ...
  1. #1

    Join Date
    Apr 2009
    Location
    Stoke
    Posts
    81
    Thank Post
    24
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Cron (Moodle/ Corn.php) on Ubuntu 8.04lts

    Hi All
    I am trying to setup moodle/admin/cron.php on ubuntu 8.04lts. (schedule tasks) I have set it up to run every 5 mins and checked forum it seems like it not working properly ( does n't sends emails ).

    Can anybody tell me how to set it up on schedule tasks to run cron automatically.

    Any help/suggestions would be appreciated.

    Thanks

  2. #2


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,678
    Thank Post
    352
    Thanked 794 Times in 714 Posts
    Rep Power
    346
    Check your access logs to see if it is working but isn't sending you a mail (for whatever reason).

    My crontab looks as follows:

    Code:
    */5 * * * * wget -q -O /dev/null http://www.mymoodle.com/admin/cron.php
    What does yours look like?

  3. #3

    Join Date
    Apr 2009
    Location
    Stoke
    Posts
    81
    Thank Post
    24
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Quote Originally Posted by kmount View Post
    Check your access logs to see if it is working but isn't sending you a mail (for whatever reason).

    My crontab looks as follows:

    Code:
    */5 * * * * wget -q -O /dev/null http://www.mymoodle.com/admin/cron.php
    What does yours look like?
    Well mine aslo looks same as it is.

  4. #4


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,678
    Thank Post
    352
    Thanked 794 Times in 714 Posts
    Rep Power
    346
    Worth checking your logs then fella, by default in /var/log/apache2/ to see if its hitting it.

    If not, run the command manually from the shell and check if the log shows it hitting and we can look at why/if Cron is playing up.

  5. #5

    Join Date
    Apr 2009
    Location
    Stoke
    Posts
    81
    Thank Post
    24
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Quote Originally Posted by kmount View Post
    Worth checking your logs then fella, by default in /var/log/apache2/ to see if its hitting it.

    If not, run the command manually from the shell and check if the log shows it hitting and we can look at why/if Cron is playing up.
    I cant see any hits in access.log or error.log

    How do i check from shell window?

    Cheers

  6. #6


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,678
    Thank Post
    352
    Thanked 794 Times in 714 Posts
    Rep Power
    346
    Pop in whatever you're using for your cron less the time indicators (the */5 and *'s)

    In my case:

    wget -q -O /dev/null my moodle login demo database at mymoodle.com

  7. #7

    Join Date
    Apr 2009
    Location
    Stoke
    Posts
    81
    Thank Post
    24
    Thanked 1 Time in 1 Post
    Rep Power
    0
    ho well sorted,

    I have enable cron job via command line i have to diable it ( leave default).

    Cheers :0)

  8. #8


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,678
    Thank Post
    352
    Thanked 794 Times in 714 Posts
    Rep Power
    346
    My pleasure.

SHARE:
+ Post New Thread

Similar Threads

  1. Moodle PHP
    By danIT in forum Coding
    Replies: 6
    Last Post: 12th January 2009, 01:38 PM
  2. Can't make cron work
    By powdarrmonkey in forum *nix
    Replies: 8
    Last Post: 26th August 2008, 09:44 PM
  3. Ubuntu / Moodle REALLY SLOOOOWWWWW
    By ICTNUT in forum Virtual Learning Platforms
    Replies: 42
    Last Post: 10th October 2007, 12:49 PM
  4. ubuntu and Moodle
    By TechMonkey in forum *nix
    Replies: 12
    Last Post: 23rd September 2006, 06:58 PM
  5. getting moodle to work on ubuntu
    By pcprofessor in forum *nix
    Replies: 6
    Last Post: 23rd February 2006, 09:07 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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