Document not found! Please try again

Moodle on Ubuntu 12.04 server - Columbia-Area Linux Users Group

3 downloads 123 Views 7MB Size Report
Jan 10, 2013 ... Moodle on Ubuntu 12.04 Server. Gareth Digby for the. Columbia Area Linux User's Groups. Thursday, January 10, 13 ...
Moodle on Ubuntu 12.04 Server Gareth Digby for the Columbia Area Linux User’s Groups

Thursday, January 10, 13

Introduction What is Moodle Building the Linux server Installing Moodle Configuring Moodle An overview of Moodle 2 Thursday, January 10, 13

What Is Moodle? Moodle is an: open source web-based Content Management System (CMS) for teaching using a social constructionist pedagogy

Thursday, January 10, 13

What Can You Do With Moodle? Create Courses, containing Activities, such as

Books

Lessons

Files

Quizzes

URLs

Assignments

etc

Forums etc.

Thursday, January 10, 13

Resources, such as

What Can You Do With Moodle?... Teach and manage your training and education courses, through Creating or importing, and then managing content using Moodle creation tools importing from external content creation tools

Thursday, January 10, 13

Grade student activity automatically manually Manage Student enrollment self-enrollment manual enrollment

Moodle On Linux

L - Linux A - Apache M - MySQL P - PHP

Thursday, January 10, 13

Moodle Server Configuration OpenSSH server to login to the server remotely (if necessary) LAMP server so Apache, MySQL & PHP are all installed when the server is built

Thursday, January 10, 13

Network Configuration Moodle Server ifconfig - to get MAC address DHCP Server set IP address for that MAC address DNS Server - set DNS record for server Moodle Server - update build apt-get update && apt-get upgrade && apt-get dist-upgrade

Thursday, January 10, 13

Moodle Server Firewall Configuration

Configure a firewall using ufw ufw enable ufw logging low ufw allow ssh ufw allow apache ufw status

Thursday, January 10, 13

Check the Apache Server Works

Use Firefox and browse to the URL of your server

Thursday, January 10, 13

Check the Apache & PHP Works mkdir /var/www/moodle nano /var/www/moodle/ phpinfo.php add the single line below, save and exit.   Use Firefox and browse to http://server-URL/moodle/ phpinfo.php

Thursday, January 10, 13

Install PHP Modules for Moodle apt-get install php5-gd php5mysql 

apt-get install php5-cli

apt-get install php5-curl php5xmlrpc php5-intl

Don’t leave a security hole...

/etc/init.d/apache2 restart Use Firefox and browse to http://server-URL/moodle/ phpinfo.php

Thursday, January 10, 13

check with: /usr/bin/php -v rm /var/www/moodle/ phpinfo.php Clean up in preparation for the next stage... rmdir /var/www/moodle

Moodle Directory Structure Moodle uses two directories: moodle holds the HTML and PHP code that creates the Moodle site moodledata holds all the content managed by Moodle

Thursday, January 10, 13

Load Moodle Using Git apt-get install git git-core git-doc cd /var/www git clone git://git.moodle.org/ moodle.git

chmod 0777 /var/www/moodle

cd moodle

mkdir /var/moodledata

git branch -a

chmod 0777 /var/moodledata

git branch --track MOODLE_23_STABLE origin/ MOODLE_23_STABLE

Thursday, January 10, 13

git checkout MOODLE_23_STABLE

Create MySQL Database for Moodle mysql -u root -p [asks for password you set when building the server] mysql> create database moodle default character set utf8; mysql> grant all on moodle.* to moodleuser@localhost identified by 'mypassword'; mysql> exit service apache2 restart 15 Thursday, January 10, 13

Install Moodle Using A Browser Use Firefox and browse to http://server-URL/moodle/

Thursday, January 10, 13

Post-Installation Housekeeping Secure Moodle directory permissions chown -R root /var/www/moodle chmod -R 0755 /var/www/moodle Setup Moodle’s cron job /usr/bin/php /path/to/moodle/admin/cli/cron.php crontab -u www-data -e insert text below into crontab */15 * * * * /usr/bin/php  /path/to/moodle/admin/cli/cron.php >/dev/null

17 Thursday, January 10, 13

Launch Moodle

Use Firefox and browse to http://server-URL/moodle/

Thursday, January 10, 13

Configure the SMTP Mail Server Settings Set mail server details so the Moodle site can email users if you do not have an email server you can use Google gmail [email protected], via smtp.gmail.com:465 w/SSL

Thursday, January 10, 13

Configure the Authentication Setting Moodle can handle many different types of authentication, including LDAP, IMAP Using LDAP or IMAP means that users can self enroll and the administrators do not need to create user accounts For example, setting IMAP: sudo apt-get install php5imap then access the authentication settings page in Moodle

Thursday, January 10, 13

Choose A Theme Moodle comes with a number of ready-to-go themes which are used to set the style of the Moodle site You can modify these to your liking HTML, CSS (& PHP) With Moodle version 2.x different themes can be used for different devices: computers; tablets; smartphones

Thursday, January 10, 13

Administering Moodle Users roles Administrators Managers Course Creators Teachers Non-editing teachers Students Guests

Thursday, January 10, 13

Teaching With Moodle

Create courses of topics containing activities resources

Thursday, January 10, 13

Creating Content For Moodle...

Multiple types of media can be used to create content for the Moodle site

Thursday, January 10, 13

Summary Moodle is: a flexible Content Management System for teaching and education simple installation

Moodle on Linux: only needs a simple server build easy to include Moodle’s prerequisites straight forward to secure

Thursday, January 10, 13

Links

Moodle www.moodle.org Ubuntu www.ubuntu.com

26 Thursday, January 10, 13