Installing Moodle: Difference between revisions

From The Uniform Server Wiki
Jump to navigation Jump to search
(How to install Moodle in The Uniform Server)
 
Line 2: Line 2:


This tutorial assumes three things:
This tutorial assumes three things:
1. You've downloaded The Uniform Server and it's working correctly
1. You've downloaded The Uniform Server and it's working correctly
2. You've downloaded the '''Latest Stable Branch''' of Moodle from [http://download.moodle.org/]
 
2. You've downloaded the '''Latest Stable Branch''' of Moodle from http://download.moodle.org[http://download.moodle.org/]
 
3. You've unzipped (extracted) your download into the www folder of moodle so that the files are located in W:\www\moodle\
3. You've unzipped (extracted) your download into the www folder of moodle so that the files are located in W:\www\moodle\


If you've met all of the above requirements, just double click the Server_Start.bat file. This is where the magic happens!<br><br>You may receive a warning here, just okay the pop up box and move on. You should now see the Uniform Server Admin Panel.
If you've met all of the above requirements, just double click the Server_Start.bat file. This is where the magic happens!<br><br>You may receive a warning here, just okay the pop up box and move on. You should now see the Uniform Server Admin Panel.


"http://www.seedwiki.com/accounts/Duncan_Geof_24883/usapanel.png"
http://www.seedwiki.com/accounts/Duncan_Geof_24883/usapanel.png


<br>How cool is that? Apache is now running, now we just need to start the MySQL server and we've got the minimum requirements to run Moodle. So, choose to Run MySQL:<br><br>This should now bring you to a confirmation page that tells you MySQL started correctly. Now we need to create a database to&nbsp; use with Moodle. So, we'll take the easy way out and use phpMyAdmin (Under Tools) to create the database and user for the database.<br><br>
 
<div align="center"><img alt="Run MySQL" src="http://www.seedwiki.com/accounts/Duncan_Geof_24883/startmysql.gif" align="top" height="216" hspace="10" width="158"><img alt="Choose phpMyAdmin" src="http://www.seedwiki.com/accounts/Duncan_Geof_24883/phpmyadmin.gif" align="middle" height="108" hspace="10" width="126"><br><br><input src="http://www.seedwiki.com/accounts/Duncan_Geof_24883/phpmyadmin2.gif" align="middle" height="250" type="image" width="333"><br><br>
Apache is now running, now we just need to start the MySQL server and we've got the minimum requirements to run Moodle. So, choose to Run MySQL:
<div align="left">Now according to the official documentation at <a target="_blank" href="http://docs.moodle.org/en/Installing_Moodle">http://docs.moodle.org/en/Installing_Moodle</a> "You need to create an empty database (eg "<i>moodle</i>") in your
 
database system along with a special user (eg "moodleuser") that has
http://www.seedwiki.com/accounts/Duncan_Geof_24883/startmysql.gif
access to that database (and that database only). You could use the
 
"root" user if you wanted to for a test server, but this is not
 
recommended for a production system: if hackers manage to discover the
This should now bring you to a confirmation page that tells you MySQL started correctly. Now we need to create a database to use with Moodle. So, we'll take the easy way out and use phpMyAdmin (Under Tools) to create the database and user for the database.<br><br>
password then your whole database system would be at risk, rather than
 
just one database." So, we'll use the phpMyAdmin to:<br><br>
http://www.seedwiki.com/accounts/Duncan_Geof_24883/phpmyadmin.gif           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;http://www.seedwiki.com/accounts/Duncan_Geof_24883/phpmyadmin2.gif
<b>Step 1: </b>Type "moodle" in the <b>Create new database</b> field and click "<b>Create</b>". You should get a confirmation screen like the one below.<br><br>
 
<div align="center"><img alt="Create moodle database" src="http://www.seedwiki.com/accounts/Duncan_Geof_24883/moodledb.gif" align="middle" height="135" hspace="10" width="200"><img alt="Database moodle has been created" src="http://www.seedwiki.com/accounts/Duncan_Geof_24883/dbcreated.gif" align="middle" height="168" hspace="10" width="200"><br></div>
Now according to the official documentation at http://docs.moodle.org/en/Installing_Moodle [http://docs.moodle.org/en/Installing_Moodle] in your database system along with a special user (eg "moodleuser") that has access to that database (and that database only). You could use the "root" user if you wanted to for a test server, but this is not recommended for a production system: if hackers manage to discover the password then your whole database system would be at risk, rather than just one database."  
<br></div>
 
<div align="left"><b>Step 2: </b>Create a database user for the moodle database only. <br>Click on the home button so we can choose the "Privileges" section to create our new user and assign him privileges to the moodle database.<br><br>
So, we'll use the phpMyAdmin to:
<div align="center"><img alt="Go Home" src="http://www.seedwiki.com/accounts/Duncan_Geof_24883/gohome.gif" align="middle" height="141" hspace="10" width="200"><img alt="Choose Privileges" src="http://www.seedwiki.com/accounts/Duncan_Geof_24883/privileges.gif" align="middle" height="138" hspace="10" width="200"><br><br>
 
<div align="left">Now we'll need to Add a new User. Call the new user moodleuser. Use the drop down menu to allow him use only to Local (localhost) and type a password for moodleuser. Press <b>Go </b>on the bottom of the screen to continue.<br>
<b>Step 1: Create a new database<br></b>Type "moodle" in the <b>Create new database</b> field and click "<b>Create</b>". You should get a confirmation screen like the one below.
<div align="center"><img alt="Add a new User" src="http://www.seedwiki.com/accounts/Duncan_Geof_24883/addanewuser.gif" align="top" height="126" hspace="10" width="200"><img alt="Create moodleuser" src="http://www.seedwiki.com/accounts/Duncan_Geof_24883/moodleuser.gif" align="middle" height="275" hspace="10" width="200"><br></div>
 
http://www.seedwiki.com/accounts/Duncan_Geof_24883/moodledb.gif &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;http://www.seedwiki.com/accounts/Duncan_Geof_24883/dbcreated.gif
 
<b>Step 2: Create a database user for the moodle database only.</b> <br>Click on the home button so we can choose the "Privileges" section to create our new user and assign him privileges to the moodle database.<br><br>
 
http://www.seedwiki.com/accounts/Duncan_Geof_24883/gohome.gif &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;http://www.seedwiki.com/accounts/Duncan_Geof_24883/privileges.gif<br><br>
 
<b>Step 3: Add a new User</b><br>Let's call this new user "moodleuser". <br>Use the drop down menu to allow him use only to Local (localhost) and type a password for moodleuser. Press <b>Go </b>on the bottom of the screen to continue.<br>
http://www.seedwiki.com/accounts/Duncan_Geof_24883/addanewuser.gif &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;http://www.seedwiki.com/accounts/Duncan_Geof_24883/moodleuser.gif
<br>
<br>
<br>
<div align="left">Now let's assign moodleuser privileges to the database. Choose the "moodle" database from the "Add privileges to the following database" drop down menu. Click on "Check All" to assign all privileges to the moodle database and press <b>Go</b> to continue.<br><br>
Now let's assign moodleuser privileges to the database. Choose the "moodle" database from the "Add privileges to the following database" drop down menu. Click on "Check All" to assign all privileges to the moodle database and press <b>Go</b> to continue.<br><br>
<div align="center"><img alt="Add privileges to moodle database" src="http://www.seedwiki.com/accounts/Duncan_Geof_24883/addprivilegesdb.gif" align="top" height="215" hspace="10" width="200"><img alt="Check All privileges for moodle database" src="http://www.seedwiki.com/accounts/Duncan_Geof_24883/dbprivileges.gif" align="top" height="156" hspace="10" width="200"><br></div>
http://www.seedwiki.com/accounts/Duncan_Geof_24883/addprivilegesdb.gif &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;http://www.seedwiki.com/accounts/Duncan_Geof_24883/dbprivileges.gif<br>
</div>
 
</div>
<br>You should then receive a confirmation screen. You can close phpMyAdmin now. <br><br>
</div>
 
</div>
<b>Step 4: Moodle install</b>
<div align="left"><br>You should then receive a confirmation screen. You can close phpMyAdmin now. <br><br>Direct your browser to <a target="_blank" href="http://localhost/moodle/">http://localhost/moodle</a>. Time to start configuring Moodle!<br><br>
Direct your browser to http://localhost/moodle/[http://localhost/moodle]. Time to start configuring Moodle!<br><br>
<div align="center"><img alt="Moodle Install" src="http://www.seedwiki.com/accounts/Duncan_Geof_24883/moodleinstall.gif" align="middle" height="300" width="400"><br></div>
http://www.seedwiki.com/accounts/Duncan_Geof_24883/moodleinstall.gif
<br><b>Next </b><a href="http://www.seedwiki.com/wiki/just_moodlin_around/configuring_moodle.cfm?wpid=244661">Configuring Moodle</a><br></div>
 
</div>
Any additional guidance from this point forward would be best found in the forums at http://moodle.org [http://moodle.org]
<nowiki>Insert non-formatted text here</nowiki>
 
Happy Moodlin'!

Revision as of 22:32, 31 July 2006

Installing Moodle in the Uniform Server

This tutorial assumes three things:

1. You've downloaded The Uniform Server and it's working correctly

2. You've downloaded the Latest Stable Branch of Moodle from http://download.moodle.org[1]

3. You've unzipped (extracted) your download into the www folder of moodle so that the files are located in W:\www\moodle\


If you've met all of the above requirements, just double click the Server_Start.bat file. This is where the magic happens!

You may receive a warning here, just okay the pop up box and move on. You should now see the Uniform Server Admin Panel.

http://www.seedwiki.com/accounts/Duncan_Geof_24883/usapanel.png


Apache is now running, now we just need to start the MySQL server and we've got the minimum requirements to run Moodle. So, choose to Run MySQL:

http://www.seedwiki.com/accounts/Duncan_Geof_24883/startmysql.gif


This should now bring you to a confirmation page that tells you MySQL started correctly. Now we need to create a database to use with Moodle. So, we'll take the easy way out and use phpMyAdmin (Under Tools) to create the database and user for the database.

http://www.seedwiki.com/accounts/Duncan_Geof_24883/phpmyadmin.gif           http://www.seedwiki.com/accounts/Duncan_Geof_24883/phpmyadmin2.gif

Now according to the official documentation at http://docs.moodle.org/en/Installing_Moodle [2] in your database system along with a special user (eg "moodleuser") that has access to that database (and that database only). You could use the "root" user if you wanted to for a test server, but this is not recommended for a production system: if hackers manage to discover the password then your whole database system would be at risk, rather than just one database."

So, we'll use the phpMyAdmin to:

Step 1: Create a new database
Type "moodle" in the Create new database field and click "Create". You should get a confirmation screen like the one below.

http://www.seedwiki.com/accounts/Duncan_Geof_24883/moodledb.gif           http://www.seedwiki.com/accounts/Duncan_Geof_24883/dbcreated.gif

Step 2: Create a database user for the moodle database only.
Click on the home button so we can choose the "Privileges" section to create our new user and assign him privileges to the moodle database.

http://www.seedwiki.com/accounts/Duncan_Geof_24883/gohome.gif           http://www.seedwiki.com/accounts/Duncan_Geof_24883/privileges.gif

Step 3: Add a new User
Let's call this new user "moodleuser".
Use the drop down menu to allow him use only to Local (localhost) and type a password for moodleuser. Press Go on the bottom of the screen to continue.
http://www.seedwiki.com/accounts/Duncan_Geof_24883/addanewuser.gif           http://www.seedwiki.com/accounts/Duncan_Geof_24883/moodleuser.gif

Now let's assign moodleuser privileges to the database. Choose the "moodle" database from the "Add privileges to the following database" drop down menu. Click on "Check All" to assign all privileges to the moodle database and press Go to continue.

http://www.seedwiki.com/accounts/Duncan_Geof_24883/addprivilegesdb.gif           http://www.seedwiki.com/accounts/Duncan_Geof_24883/dbprivileges.gif


You should then receive a confirmation screen. You can close phpMyAdmin now.

Step 4: Moodle install Direct your browser to http://localhost/moodle/[3]. Time to start configuring Moodle!

http://www.seedwiki.com/accounts/Duncan_Geof_24883/moodleinstall.gif

Any additional guidance from this point forward would be best found in the forums at http://moodle.org [4]

Happy Moodlin'!