-

Note: You are currently viewing documentation for Moodle 3.10. Up-to-date documentation for the latest stable version of Moodle may be available here: Cron on 1and1 shared servers.

Cron on 1and1 shared servers: Difference between revisions

From MoodleDocs
m (Installing Moodle template)
(copied from 2.9 docs)
 
Line 14: Line 14:


For the /path/to/moodle/admin/cli you need to type the path you found during the above tutorial, which should look something like /username/homepages/nn/.../htdocs/moodle/admin/cron.php.  This is the bit you might have difficulty with if you have used a one-click installation.  Where is your moodle?  For me my moodle is right inside my htdocs as shown in the above path. If you have got to the command line, the command 'pwd' shows you the complete path to where you are now. This should help you work it out.
For the /path/to/moodle/admin/cli you need to type the path you found during the above tutorial, which should look something like /username/homepages/nn/.../htdocs/moodle/admin/cron.php.  This is the bit you might have difficulty with if you have used a one-click installation.  Where is your moodle?  For me my moodle is right inside my htdocs as shown in the above path. If you have got to the command line, the command 'pwd' shows you the complete path to where you are now. This should help you work it out.
==See also==
* [https://help.1and1.com/hosting-c37630/scripts-and-programming-languages-c85099/cron-jobs-c37727/create-a-cron-job-a595882.html 1and1 Help Center: Create a Cron Job]

Latest revision as of 13:55, 17 November 2015

The following information is taken from the 1and1 FAQs and should be read in conjunction with the instructions for Cron_with_Unix_or_Linux:

The following pages explain very clearly how to do the basic tasks:

All the necessary know-how to set up your cron by editing the crontab is now available to you after following the above tutorial. All you now need is to work out exactly what to add to your crontab, now that you can find it and edit it. This is found on the moodle docs page above. Specifically:

  • /15 * * * * /usr/bin/php /path/to/moodle/admin/cli/cron.php

The /usr/bin/php path for 1and1.co.uk to be the same as in the tutorial and moodle pages, so it is exactly as shown.

For the /path/to/moodle/admin/cli you need to type the path you found during the above tutorial, which should look something like /username/homepages/nn/.../htdocs/moodle/admin/cron.php. This is the bit you might have difficulty with if you have used a one-click installation. Where is your moodle? For me my moodle is right inside my htdocs as shown in the above path. If you have got to the command line, the command 'pwd' shows you the complete path to where you are now. This should help you work it out.

See also