Sunday, February 5, 2012

#Moodle 2.x Admin Video Series #tcea2012

Image Source: Adapted from http://goo.gl/YTCRv

In anticipation of a Moodle workshop entitled, Energize! - Moodle on a Laptop, I've drafted my notes on many aspects of Moodle administration and created 5 minute video walkthroughs--updated for Moodle 2.2--for each topic. The videos are rough-hewn, but provide a better tutorial than screenshots and text, IMHO.

Although I prefer Linux--view the UbuntuLinux version of these notes sans videos--these days for Moodle server, running Moodle on a Windows Laptop is pretty straightforward. My notes below are immediately for that, although once you get down to Step 6-7, it's all about Moodle.

I hope this is helpful to a budding Moodle administrator out there, not just the folks in the workshop at TCEA 2012 State Conference!

XAMPP Windows Server for Moodle

Welcome! This is a short outline with video illustrations. You can access all the videos here.


Step 1 - Get the Software You Need (View Video Walkthrough)
Step 2 - Install Software in this Order (View Video Walkthrough)
  1. Chrome browser
  2. PS Pad text editor
  3. XAMPP - install onto D:\ if on a server or C:\ if it's your laptop or desktop computer. If in a server environment, check with your server admin for specific drive to install to. Start the Control Panel, which should put an orange box on your screen.
Step 3 - Create Shortcuts and Necessary Folders (View Video Walkthrough)
  1. Go to the hard drive (C: or D:) that you installed XAMPP on, and make a shortcut on the Desktop for the htdocs folder
  2. Create a folder called mdata at the same level as htdocs (not inside it)
  3. Unzip the Moodle 2.1.3 zip file you downloaded in Step 1 and drag the Moodle folder--you can rename this to anything, such as "sandbox"--into the htdocs folder.
  4. In the mdata folder, create a folder that has the same name as your Moodle folder (e.g. "sandbox")
Step 4 - Modify PHP.INI File (View Video Walkthrough)
  1. To modify the php.ini file, you will need to go to the XAMPP folder and then find the file.
  2. Open the file with PS PAD (although most text editors will do the job), and make the following changes:
    • display_errors = Off
    • display_startup_errors = Off
    • register_globals = Off
    • post_max_size = 2000M
    • mysql.connect_timeout = -1
    • max_execution_time = 5000
    • max_input_time = 5000
    • memory_limit = 2000M
    • file_uploads = On
    • upload_max_filesize = 2000M
  3. Save your changes to the php.ini file.
  4. One possible problem that may arise is that phpMyAdmin comes up in Dutch/German. To address that, edit the config.inc.php file in the phpMyAdmin directory and paste in:
    $cfg['Lang']     = 'en-utf-8'; 
    to ensure it always loads in English. Note: The video for Step 5 addresses the phpMyAdmin issue.
Step 5 - Start Using the XAMPP Control Panel  (View Video Walkthrough)
  1. Activate Apache by clicking the START button
  2. Activate MySQL by clicking the START button
  3. Start up Chrome browser and navigate to http://localhost on your computer. This should bring up the XAMPP language selection page. Choose English or your preferred language.
Step 6 - Working with MySQL  (View Video Walkthrough)
  1. Database creation
    1. While viewing the XAMPP page, click on phpmyadmin in the menu and then create a new database that will be used to house your Moodle content. For the purposes of this handout, let's call the database "sandbox"
    2. When you create the database, make sure to choose "utf8_general_ci" collation since that is required by Moodle.
    3. After creating the database, you should now see the database name "sandbox" down the left-hand side of the screen inphpmyadmin.
  2. Localhost User
    1. You will want to create a user that interacts only with the Moodle database. This username and the assigned password will ONLY have localhost access to the server. Localhost access means anyone not accessing the server--as if they were sitting in front of it--would have access to the server. This prevents unauthorized use of over the Internet or the local area network of the user.
    2. Go to Privileges in phpmyadmin and create a user called "sandboxer" with the password of "Sandbox123%" without quotes. Be sure to GRANT ALL privileges.
Step 7 - Installing and Configuring Moodle

A. Installing Moodle  (View Video Walkthrough)
  1. Are you ready to install Moodle? You should now have 4 pieces of information:
    • The name of the Moodle database - sandbox
    • The name of the MySQL user allowed to access sandbox database - sandboxer
    • The password of the MySQL user - Sandbox123%
    • The location of the Moodledata folder - C:\xampp\mdata\sandbox(Note: If you are installing on a real server, change the "C:\" to reflect the drive where you installed XAMPP)
  2. Go to your web browser and type in the URL of the server, or, if on your own computer, type http://localhost/sandbox
  3. You should see the start of the Moodle installation. Follow the steps suggested.
  4. After you've installed Moodle, you should see everything pop up as normal.
B. Configuring Moodle (View Video Walkthrough)
After the installation of Moodle, you'll be asked to do some configuration of Moodle. 
  1. Session Handling (View Video) - How to Deploy Multiple Moodle Instances on one server with different cookies
  2. Setting Up CRON Jobs (View Video: Part 1 | Part 2) - Read more about what is Cron. Use the Moodle Cron package. The simplest way is to use this little package MoodleCron-Setup.exe, which makes this whole thing very easy by installing a small Windows service. Run it and forget about it! :-)
  3. Managing Courses
    1. Course Default Settings with a quick overview of group settings (View Video)
    2. Course Categories (View Video)
    3. Backing Up and/or Duplicating from Restored Course (View Video)
    4. Restoring Courses (View Video)
Some additional topics:

C. Moodle User Authentication (View Video Walkthrough) - How do users login to Moodle? 
  • External Database Authentication - Interested in creating your own external database that users can authenticate to? Read these suggestions.
  • Bulk User Import (View Video Part 1 and Part 2) - Need to quickly import users into Moodle? Although this isn't recommended for large numbers of users (e.g. use External Database or LDAP), it can be a handy trick to know! You may also want to read this tip on bulk updating user roles (e.g. switching students to teachers).
    • Sample Excel Spreadsheet you can download and modify to fit your needs.
    • CSV file that you can look at as an example to know what your Excel Export/SaveAs CSV file should look like.

D. Adding Modules/Blocks/Themes to Moodle
The process for both of these involves placing the block/mod/theme in the similarly named folder within your Moodle instance (e.g. Sandbox) and then visiting the Site Administration->Notifications page and following the directions (click the UPGRADE button).
  1. How to Install Blocks/Modules into Moodle (View Video) - Here are some great recommendations for modules/blocks via Gavin Henrick at Some Random Thoughts blog.
  2. How to Install Themes into Moodle (View Video) - The process 
E. Setting Up Email for a Moodle 2 instance (View Video) - If you want your forum email subscribers, email self-registration to work, you'll need to setup email on your Moodle instance.

Step 8 - Securing XAMPP  (View Video Walkthrough)
  1. XAMPP installation is not secure as it is so you need to secure it. One of the ways to accomplish this is to follow the Security instructions available online.
  2. Go to http://localhost/security
  3. After taking these steps, remove the index.php file and the contents of the htdocs folder EXCEPT for the newly createdsandbox folder. Note: This will remove your access to phpmyadmin. We will install it in a moment.
Step 9 - Installing PHPMyAdmin  (View Video Walkthrough)
  1. When you emptied out the contents of the htdocs folder--except sandbox--you removed the link to phpmyadmin, which allows you to interact with MySQL databases.
  2. Make a folder called "myadmin" without quotes.
  3. Unzip the contents of the phpmyadmin.zip file you downloaded in Step 1 into the myadmin folder. Make sure you do NOT have a folder path that looks like this: C:\xampp\htdocs\myadmin\phpmyadmin since that will cause problems. Instead, when you look at myadmin you should see a list of files.
  4. Go to C:\xampp\phpmyadmin and copy the config.inc.php and paste it into C:\xampp\htdocs\myadmin\
  5. Test that it's working by going to http://localhost/myadmin
  6. If successful, you should see a login screen for phpmyadmin
Step 10 - Take a Break

Step 11 - Upgrading Your Moodle 2.x Installation
Since you will eventually be called upon to upgrade your Moodle installation, this is what you need to do:
  1. Backup Your Moodle Database (View Tutorial)
  2. Backup your config.php file in your Moodle directory in htdocs
  3. Download the latest version of Moodle 2.x to your computer.
  4. Copy your old Moodle's themes, mods and blocks--this is a good time to upgrade 
  5. them--into the new Moodle version you've downloaded from Moodle.org
  6. Delete everything else in your Moodle directory in htdocs EXCEPT the config.php 
  7. file.
  8. Copy the contents of the new Moodle 2.x into your old directory.
  9. Go to http://localhost/moodlename/admin to complete installation



Get Blog Updates via Email!
Enter your email address:
Delivered by FeedBurner


Everything posted on Miguel Guhlin's blogs/wikis are his personal opinion and do not necessarily represent the views of his employer(s) or its clients. Read Full Disclosure

No comments:

Subscribe via email

Enter your email address:

Delivered by FeedBurner

Disclaimer

Disclaimer

Everything posted on Miguel Guhlin's blogs/wikis are his personal opinion and do not necessarily represent the views of his employer(s) or its clients. Read Full Disclosure