Your Own LMS in Fifteen Minutes, Fifteen Steps to Moodle

For the sake of the impatient, the steps are first, followed by more information afterwards:

  1. Introduction
    • LMS stands for Learning Management System more information can be found on WikipediA.
  2. Preparing your environment
    • You will need a PC, doesn't have to be that modern.
    • The PC's hard disk should have about 100 megabytes of free space (my base Moodle install, that has about ten courses plus other stuff, takes up about 60 megs).
    • Windows should be installed; either 98, 2000, XP or 2003 should work.
    • No webserver should be running on the machine. To check this out quickly, fire up your browser and enter the following in the address bar http://127.0.0.1. You should see a dialog box saying something like: "Connection refused from 127.0.0.1" and a blank stare in your main browser window.
  3. Download Uniform Server
    • Download Uniform Server from SourceForge at this link. I've had errors running the .exes, so I suggest you get one of the .zip files instead.
    • Make a mental note of the folder where you told your browser to save the zip file.
  4. Download Moodle
    • Make sure you tell your browser to save the next .zip file in the same place as before (you did make that mental note, right?).
    • So, get your Moodle .zip from SourceForge too, go here.
  5. Uncompress files
    • Go into the folder where you downloaded both the Uniform Server and Moodle.
    • Uncompress the Uniform Server file to a suitable location such as "C:" or even "C:Program Files" but not "C:Temp" or any temporary folder.
    • Now make a mental note of the folder created when you uncompress the Uniform Server.
    • Uncompress the Moodle .zip file, anywhere you want is fine.
  6. Uniform Server + Moodle
    • Now this may be tricky, so read this step completely before you try.
    • Go into the folder created when you uncompressed Moodle, you should see many folder and files, including one named index.php and another named config.php.
    • Select all the files inside this folder with control+a
    • Cut the files with control+x. Don't worry because you still have the original zip files in case you do this wrong.
    • Now navigate to the Uniform Server folder you should see a folder named diskw, go into this folder. You should now see more folders and one named www, go into this one.
    • You should see a file named index.html, delete this file.
    • Now paste the files that you had cut with control+v.
    • All the files that were in the Moodle folder should now be in the www folder.
  7. Configure Moodle config
    • Open up Notepad
    • Drag the file called config.php into the Notepad window, you should now see it's contents.
      • If you don't have this file open up config-dist.php instead.
    • Change (if needed) the corresponding lines in config.php like so:
      • $CFG->dbtype = 'mysql';
      • $CFG->dbhost = 'localhost';
      • $CFG->dbname = 'moodle';
      • $CFG->dbuser = 'root';
      • $CFG->dbpass = ''; (note: don't put any spaces between the quotes!)
      • $CFG->wwwroot = 'http://localhost/';
      • $CFG->dirroot = 'w:www';
      • $CFG->dataroot = 'w;wwwmoodledata';
    • Save your changes. Or, if you used config-dist.php go to the File Menu and choose save as... then save the file as config.php.
  8. Configure Uniform Server
    • Go back to the Uniform Server Directory, the one where you found the diskw folder.
    • Make a copy of the file start.bat (control+c then control+v).
    • Now right click on this file and choose edit from the context menu, Notepad should open.
    • In line #20, delete the beginning of the line where it says:
      • IF "%2"=="mysql"
    • Line #20 should now begin with:
      • start usrlocalmysqlb ... etc
    • Two more lines down add a new line after the line that says:
      • echo The server is working ... etc
    • In this new line type the following:
      • wait 500
    • Close Notepad and save your changes.
  9. Start the webserver
    • Double click on the file you just edited
    • After seeing some windows pop up on the screen and waiting a while you should see your browser start up.
    • That's it! Easy step, huh?
  10. Configure MySQL
    • Now click the link labeled PhpMyAdmin in your browser window.
    • Below the line that says Create new database type:
      • moodle
    • Then click the button that says Create
    • You should see a message that says:
      • Database moodle has been created
    • Return to the Uniform Server's administration page by clicking the link at the top of the page labeled Uniform Server
  11. Run Moodle for the first time
    • In the Uniform Server's administration page now click the link labeled Web Server.
    • Moodle setup will start. Moodle Setup will guide you in making the right choices for the installation just remember the following about tour database:
      • You are using a MySQL type database
      • The database name is moodle
      • The user of the database is root
      • The user of the database has no password, it is blank
  12. Stopping the webserver
    • When you want to stop the webserver, and moodle too!, type the following location into your browser's address bar:
      • http://localhost/a/
    • Then click the link that says Shutdown the server.
  13. Tips and Tricks
    • When you want to start your webserver with Moodle just repeat step 9.
    • Likewise when you want to stop it repeat step 12.
    • You should add bookmarks (or favorites if you use IE) for the main administration page (http://localhost/a/) and the main web server page (http://localhost/).
    • If you shut down your webserver (step 12) and then zip the folder that contains the Uniform Server, and then move this zipped file to another computer and uncompress it, you should then be able to run your web server on that computer by performing only step 9. That means this installation process need only be undertaken once!
    • You can also make a copy of the folder on your own computer, effectively giving you two installations. Beware however, as only one may run at any one time.
  14. What if I want to use it for real?
    • This way of installing Moodle is better suited to demo it, or learn how to use it.
    • You could even go as far as making it available on your intranet.
    • But... I do not recommend you use it in a production server (read as: available on the net).
    • The reason is that the components used have not been secured for use via the Web.
  15. Extra Information
    • The Uniform Server is comprised of the following components
    • Maybe you noticed that we could go get from the web every component that we needed to build our LMS. That is because the Uniform Server with it's Apache Server, it's MySQL database and PHP and Moodle itself, everything we installed, are open source software.

The Information Soldier protects information by giving it away...


Comments

Thanks Fred, This post is

Thanks Fred,

This post is SOOO old. I'm sure that download is way better!

You can find a complete

You can find a complete download at:

http://wiki.uniformserver.com/index.php/Installing_Moodle_1....

Installing Moodle 1.9.1 on 3.5-Apollo

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <b> <i> <em> <strong> <cite> <blockquote> <a>
  • Lines and paragraphs break automatically.
  • Images can be added to this post.
  • Each email address will be obfuscated in a human readble fashion or (if JavaScript is enabled) replaced with a spamproof clickable link.

More information about formatting options

To combat spam, please enter the code in the image.