From: moodler This guide explains how to install Moodle for the first time. It goes into some detail
about some of the steps, in order to cover the wide variety of small differences between
- web server setups. Don't be put off by this - on most servers Moodle can be set up
- in a few minutes!Installing Moodle
Take your time and work through this document carefully - it will save you time later on.
Sections in this document:
On a Windows platform, the quickest way to satisfy these requirements is - to download PHPTriad, FoxServ, + to download FoxServ, or EasyPHP which will install Apache, PHP, and MySQL for you. Make sure you enable the GD module so Moodle can process images - you may have to edit php.ini and remove the comment (;) from this @@ -95,10 +96,13 @@
Create a directory for this purpose somewhere. For security, it's best that this directory is NOT accessible via the web. The easiest way to do this - is to simply locate it OUTSIDE the web directory, otherwise make sure it's well - protected with .htaccess security. + is to simply locate it OUTSIDE the web directory, otherwise protect it + by creating a file in the data directory called .htaccess, containing this line: +
+-deny from all+
So that Moodle can save uploaded files in this directory, make sure that +
To make sure that Moodle can save uploaded files in this directory, check that the web server software (eg Apache) has permission to write to this directory. On Unix machines, this means setting the owner of the directory to be something like "nobody" or "apache".
@@ -279,7 +283,12 @@ php_value post_max_size 2M where this script is run regularly (eg every five minutes). This provides a "heartbeat" so that the script can perform functions at periods defined by each module. -Test that the script works by running it directly from your browser:
+Note that the machine performing the cron does not need to be the same + machine that is running Moodle. For example, if you have a limited web hosting + service that does not have cron, then you can might choose to run cron on another + server or on your home computer. All that matters is that the cron.php file is + called every five minutes or so.
+First, test that the script works by running it directly from your browser:
@@ -315,7 +324,8 @@ php_value post_max_size 2Mhttp://example.com/moodle/admin/cron.php
*/5 * * * * wget -q -O /dev/null http://example.com/moodle/admin/cron.php
On Windows systems: The simplest way is to use my package moodle-cron-for-windows.zip - which makes this whole thing very easy.
+ which makes this whole thing very easy. You can also explore using the built-in + Windows feature for "Scheduled Tasks".