Tigerfarm Tigerfarm

Computers, Localization, Travel, Southeast Asia, Sun Microsystems, Writing
« Thailand Map Google... | Main | Cooking Tom Yum... »

Open Source Course Content: Web 2.0 | Frameworks | Solaris
Wednesday May 30, 2007

Moodle Setup using Moodle Windows Package

The Moodle Windows Package uses the XAMPP Package. This allows a fast straight forward method to run Moodle on a Windows computer.

* From http://download.moodle.org/windows/,
** Download the Moodle zip file for Windows: Moodle 1.7.2+
Example Windows file: MoodleWindowsInstaller-latest-17.zip
Unzip into the directory: C:\xampplite
** This directory is hardcoded into some of the batch files. If you do not use this directory name, batch files need to be updated with your dirctory name.
* Start the Apache2 web server you have just installed by double clicking on:
C:\xampplite\apache_start.bat
* Use browser, go to: http://localhost
This starts the Moodle installation, and means that your web server with PHP is working.

View the readme file, C:\xampplite\readme_en.txt, to see what you have installed, and what the usernames and passwords are.

Setup the Moodle Database

Following instructions from: http://docs.moodle.org/en/Installing_Moodle

C:\xampplite\mysql\bin>mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 5.0.27-community

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> CREATE DATABASE moodle DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci
;
Query OK, 1 row affected (0.07 sec)

mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,INDEX,ALTER ON moodle.*
    ->           TO moodle@localhost IDENTIFIED BY 'moodle';
Query OK, 0 rows affected (0.03 sec)

mysql> quit
Bye

C:\xampplite\mysql\bin>mysqladmin -u root -p reload
Enter password:

C:\xampplite\mysql\bin>mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 4 to server version: 5.0.27-community

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,CREATE TEMPORARY TABLES,
    ->           DROP,INDEX,ALTER ON moodle.*
    ->           TO moodle@localhost IDENTIFIED BY 'moodle';
Query OK, 0 rows affected (0.01 sec)

mysql> exit
Bye

* Use browser, go to: http://localhost
This starts the Moodle installation, and means that your web server with PHP is working.
* Use all the defaults to run through the Moodle installation. The installation creates the Moodle config file, and creates its needed database tables and data to get started.
* Near the end, on this page that starts with:
On this page you should configure your main administrator account which will have complete control over the site.
** I set:
My admin password to moodle.
My time zone to: GMT-8

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed