|
Moodle 1.9.1 |
I mentioned to a friend I was moving Moodle over to Uniform Server’s Wiki and asked what he would like to see in the installation instructions. I was a little surprised at his response! No geeky stuff just a fully working downloadable package would do nicely.
I have gone for a British compromise and provided both a full downloadable package comprising Uniform Server 3.5-Apollo with Moodle 1.9.1 and some geeky stuff should you wish to upgrade in the future.
Searching the Internet I found something interesting Uniform Server uses a RAM disk. That was new to me I suppose the Uniform Server team had second thoughts of wasting your valuable memory like this, however it is possible, may even write a user guide on how to do it. Uniform Server does NOT use a RAM drive it runs from either a hard drive or USB memory stick. Strange how misconceptions prevail on the Internet.
Uniform Server creates a virtual drive (default W) and uses this, it appears to be running on drive W in reality it is running code from where Uniform Server was installed. If drive W is occupied by a real physical drive Uniform Server has a selectable option allowing it to run from another drive letter.
During installation Moodle picks up the true environment for its operation, even reports potential problem areas that need looking at. However it is not draconian in any way; I chose to ignore some options such as increasing memory size, using curl and Openssl these are not required for a personal installation.
Install it have a play you can make changes after installation.
The first task is to download the appropriate files and unzip them. You will notice I am using disk G the only reason for this, my C drive is getting full. If you wish you can save the downloaded files to a new folder or diffrent hard drive and work from there, it is of little consequence; use whatever you are comfortable with.
Note: Latter on you will need to start and stop Uniform Server the files to do this are located in folder G:\Uniform Server
Note: To save disk space (about 54.9MB) delete the folder G:\moodle-weekly-19
That completes the preparations.
The followin is a step-by-step guide for installing Moodle on Uniform Server.
This will be a personal installation of Moodle not intended to be put on line, the servers are inherently secure hence nothing to change. The MySQL server already contains a user named root and password root these defaults will be used during Moodle installation.
Before performing a Moodle installation a moodle database needs creating on the MySQL server as follows:
All that remains is to run the Moodle nstaller script install.php. Type the following into your browser address bar.
http://localhost/moodle/install.php
Most of the pages display information just click either the next or continue button to proceed to the next page. Item 4 requires the database user name and password for a personal installation we are using the defaults root and root. The following shows what to expect during installation:
Note: Steps 19-20 I entered dummy information. You can change this information from admin at any time, however make sure you remember your admin password and name.
Note: You can run apanel at any time by typing http://localhost/apanel into your browser address bar.
To run Moodle from a Memory stick, copy the folder G:\Uniform Server and all its content to whatever drive your memory stick is on.
Note: This process is not fast; writing 138 MB (UniServer plus Moodle) took just over 20 minutes. In the same vain do not expect exceptional performance, Moodle uses a large database hence is slow when run from a memory stick. That said I found it just about acceptable.
To keep Moodle happy you need to periodically run the cron.php script.
For a personal implementation of Moodle you can run cron.php occasionally by typing the following into your browser address bar:
http://localhost/moodle/admin/cron.php
That completes installation; you have Moodle running on Uniform Server. Either run it from your hard drive or copy to and run it from a memory stick.
If drive W is a limitation (already in use) change the file as shown in the next section. This will allow you to select any free drive for this you start the servers using Start.vbs which provides options to start MySQL and change the drive letter to use.
During installation Moodle uses the drive letter (default W) it is installed from and hard wires it into a configuration file. This means you cannot use Start.vbs to change the drive letter and expect Moodle to run. A solution to this problem requires changing the Moodle configuration file config.php.
Changes highlighted in bold:
| config.php (located in folder G:\Uniform Server\udrive\www\moodle) |
|---|
<?php /// Moodle Configuration File //MPG 22-6-08: This determins real drive letter, reconstructs paths accordingly $path = realpath(dirname($_SERVER['config.php'])); // path of this file unset($CFG); $CFG->dbtype = 'mysql'; $CFG->dbhost = 'localhost'; $CFG->dbname = 'moodle'; $CFG->dbuser = 'root'; $CFG->dbpass = 'root'; $CFG->dbpersist = false; $CFG->prefix = 'mdl_'; $CFG->wwwroot = 'http://localhost/moodle'; //Changed to pick up correct paths - mpg
$CFG->admin = 'admin';
$CFG->directorypermissions = 00777; // try 02777 on a server in Safe Mode
require_once("$CFG->dirroot/lib/setup.php");
// MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES,
// RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE.
?>
|
Download the following file uc_us35_moodle191.exe.exe (18.2MB) save it to any folder of your choice.
MD5 = 9cebf61986ec7dd398c079b7ad8eb2c32
The file is a self-extracting archive; double click to run, no need to change the path.
You can either run the full package locally on an hard disk or copy folder Uniform Server and all its content to a USB stick.
Running:
Well that’s the easy bit over with now all you need to do is learn how to use Moodle enjoy.
| | Ric |