Note: You are currently viewing documentation for Moodle 2.5. Up-to-date documentation for the latest stable version of Moodle may be available here: Step-by-step Installation Guide for Ubuntu.

Step-by-step Installation Guide for Ubuntu: Difference between revisions

From MoodleDocs
Line 11: Line 11:
''''It will prompt you to set the root password for mysql - take note of it, you will need it in step 5.'''
''''It will prompt you to set the root password for mysql - take note of it, you will need it in step 5.'''


== Step 3: Install the additional PHP extensions ==
== Step 3: Install Additional Software ==


<pre>sudo apt-get install php5-curl php5-gd php5-intl php5-xmlrpc</pre>
<pre>sudo apt-get install php5-curl php5-gd php5-intl php5-xmlrpc php5-ldap</pre>


restart apache for the installation to complete
Restart Apache so that the modules are loaded correctly


<pre>sudo service apache2 restart</pre>
<pre>sudo service apache2 restart</pre>
We will be using Git to install/update the Moodle Core Application
<pre>sudo apt-get install git-core</pre>


== Step 4: Download Moodle ==
== Step 4: Download Moodle ==

Revision as of 20:28, 4 November 2013

Step 1: Install Ubuntu 12.04LTS


Server Edition amd64 Preferred

http://www.ubuntu.com/download

Step 2: Install Apache/MySQL/PHP

Open up Terminal and install the following;

sudo apt-get install apache2 mysql mysql-server php5

'It will prompt you to set the root password for mysql - take note of it, you will need it in step 5.

Step 3: Install Additional Software

sudo apt-get install php5-curl php5-gd php5-intl php5-xmlrpc php5-ldap

Restart Apache so that the modules are loaded correctly

sudo service apache2 restart

We will be using Git to install/update the Moodle Core Application

sudo apt-get install git-core

Step 4: Download Moodle

cd /var/www

sudo wget http://download.moodle.org/stable25/moodle-latest-25.tgz

sudo tar -zxf moodle-latest-25.tgz

sudo mkdir /var/moodledata

sudo chmod 777 /var/moodledata

sudo chmod 777 /var/www/moodle

Step 5: Create Moodle database

mysql -u root -p

You will be prompted for the mysql root password you have created in step 2

create database moodledb charset=utf8;

create user 'mdluser'@'localhost' identified by 'password';

grant all privileges on moodledb.* to 'mdluser'@'localhost';

\q

Step 6: Setup Moodle server

Open your browser and go to http://localhost/moodle

Follow the prompts selecting:

database type

Choose: mysqli

database settings

Host server: localhost

Database: moodledb

User: mdluser

Password: password

Tables Prefix: mdl_

environment checks

This will indicate if any elements required to run moodle haven't been installed.

next next next...

follow prompts and confirm installation

create a site administrator account

Create your moodle user account which will have site administrator permissions.

The password you select has to meet certain security requirements.

Installation Complete

Bravo! You can now start playing with moodle!