Difference between revisions of "Installation on Ubuntu using Git"

Jump to: navigation, search

Note: You are currently viewing documentation for Moodle 3.1. Up-to-date documentation for the latest stable version of Moodle is probably available here: Installation on Ubuntu using Git.

(Basic Setup)
(Create the database)
Line 50: Line 50:
 
mysql> grant all on moodle.* to moodleuser@localhost identified by 'mypassword';
 
mysql> grant all on moodle.* to moodleuser@localhost identified by 'mypassword';
 
mysql> exit
 
mysql> exit
 +
</pre>
  
 
'''Notes:'''
 
'''Notes:'''

Revision as of 11:06, 18 March 2011

Introduction

This is probably an unrealistic scenario but it stemmed from a question asked in the forums and the results might be useful to others. This was done on Mythbuntu 10.10. Mythbuntu is one of the Ubuntu derivatives, in this case providing a Linux based TV package. It comes with PHP, Apache and MySQL installed having its own web-based controller.

There was no intention to provide a fully secured production server. This just gets basic Moodle working on 'localhost'.

Install Mythbuntu

- Install Mythbuntu using (if in doubt) default settings - Log in and exit MythTV application (using Escape Key) - Run Firefox and ensure that 'mythweb' is running at localhost (proving the web server is running)

Basic Setup

- Open a terminal window (from Applications>Accessories) - become root (and stay there right through this), install some additional software (git and php extras Moodle needs):

sudo su  (you will need to enter your password)
apt-get update
apt-get install git git-core git-doc
apt-get install php5-gd php5-curl php5-intl php5-xmlrpc

Install Moodle code

We're going to use Git to pull the latest code. You could just download it, but this is more fun! The chmod is so the installer can write the config file.

cd /var/www
git clone git://git.moodle.org/moodle.git
chmod 0777 moodle

Create the data area

You can create this where you like (more or less) but I will do...

mkdir /var/moodledata
chmod 0777 /var/moodledata

Create the database

You will need the root database password. Unless you have changed it, this is same as your login password

mysql -u root -p
mysql> create database moodle default character set utf8;
mysql> grant all on moodle.* to moodleuser@localhost identified by 'mypassword';
mysql> exit

Notes:

  • don't type 'mysql>', that's just the prompt from the mysql client.
  • Set 'mypassword' to something you make up. This is the password for your moodle database
  • When you install moodle the database is called 'moodle', the database user 'moodleuser' and the password as above