Moodle-Learning-Management-System/C2/Getting-Ready-for-Moodle-Installation/English

From Script | Spoken-Tutorial
Revision as of 19:34, 26 July 2017 by Itspriyanka (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Visual Cue Narration
Show Slide 1:

Getting ready for Moodle Installation.

Welcome to the Spoken Tutorial on Getting ready for Moodle installation.
Show Slide 2:

Learning Objectives:

In this tutorial, we will learn about the prerequisites for installing Moodle.

We will also learn to

  • Check for packages on localhost
  • and database setup
Show Slide 3:

OS, Web Server and Versions

To record this tutorial, I will be using:
  • Ubuntu Linux OS 16.04
  • Apache, MariaDB and PHP obtained through XAMPP 5.6.30 and
  • Firefox web browser.

You can use any web browser of your choice.

Show Slide 4:

System Prerequisites for installing XAMPP

To install Moodle 3.3 in your system, you should have a machine that supports:
  • Apache 2.x (or higher version)
  • MariaDB 5.5.30 (or any higher version) and
  • PHP 5.4.4 +(or any higher version)

If you have older versions of the above, ideally uninstall these before proceeding ahead.

Previous slide

Highlight MariaDB with the cursor.

MariaDB is the fastest growing open source database.

It is an alternative for MySQL database.

Show Slide 5:

Web Server Distribution

Web server distributions give you Apache, MariaDB and PHP bundled in one.

You can either install these separately.

Or using a Web server distribution like XAMPP, WAMPP or LAMPP.

I have already installed XAMPP in my machine.
First of all, we should check if XAMPP is running on our machine.
Open Firefox

In the address bar type,

http://127.0.0.1

>> press Enter.

In the web browser, type http colon double slash 127 dot 0 dot 0 dot 1 and press Enter.

It shows a message Unable to connect. This means XAMPP service is not running.

Open terminal by pressing Ctrl+Alt+T So, we have to start the XAMPP service.

Let’s open the terminal by pressing Ctrl + Alt + T keys together.

Start XAMPP by typing

sudo space slash opt slash lampp slash lampp space start

Enter the administrative password at the prompt. Enter the administrative password when prompted and press Enter.
Highlight the message Starting XAMPP for Linux …. on the terminal.

Highlight Mysql in the starting XAMPP for Linux command

If you get a message that says

Starting XAMPP for Linux ….

XAMPP: Starting Apache...ok.

XAMPP: Starting MySQL...ok.

XAMPP: Starting ProFTPD...ok.

It means that XAMPP is installed in your system and you have started the service.

Please note XAMPP 5.6.30 uses MariaDB instead of MySQL.

The commands and tools are the same for both.

Go to the browser. Refresh. Let us go back to the browser and refresh the page.

We can now see the XAMPP screen.

Slide 7:

XAMPP not installed

You may get a message saying, Command not found.

This means XAMPP is not installed in your machine.

Slide 8:

XAMPP Installation

If so, refer to the XAMPP Installation tutorial in the PHP and MySQL Series on this website.

Follow the instructions specified in the above tutorial and install the latest version of XAMPP.

Switch to the terminal Let’s switch back to the terminal.
Highlight the command sudo /opt/lampp/lampp start Now follow the steps shown above, to start XAMPP service.
Check PHP version Let us check the version of PHP on our system now.
Type sudo /opt/lampp/bin/php -v


Press Enter

On the terminal type

sudo space slash opt slash lampp slash bin slash php space hyphen v

and press Enter.

Enter Administrative Password if prompted >> Press Enter Enter the administrative password, if prompted and press Enter.
Highlight the version of PHP on the terminal. My version of PHP is 5.6.30.

This message indicates that PHP is installed successfully.

If you get a version lesser than 5.4.4, you should install the latest version of XAMPP.

Next, let us check the version of MariaDB on our system.
Type sudo /opt/lampp/bin/mysql -v

Press Enter

On the terminal, type sudo space slash opt slash lampp slash bin slash mysql space hyphen v

and press Enter.

Enter Administrative Password if prompted >>

Press Enter

Enter the administrative password, if prompted and press Enter.
Highlight the version of MariaDB on the terminal. My version of MariaDB is 10.1.21

If you get a version lesser than 5.5.30, you should install the latest version of XAMPP.

Please note.

You should have XAMPP running, to check the versions of PHP and database.

Type \q

Press Enter

Also note that the command prompt has now changed.


Type backslash q and press Enter to exit MariaDB.

You may also get other errors as shown here.
Slide 8:

Error 1:

You may get a message that says “An apache daemon is already running”.

It means the startup script did not start XAMPP-Apache.

This indicates that there is another Apache instance already running.

To start XAMPP properly, you will have to first stop this daemon.

The command to stop Apache is

sudo /etc/init.d/apache2 space stop

Slide 9:

Error2 : MySQL daemon failed to start

Highlight mysql in the slide

You may get a message that says MySQL daemon failed to start.

This means the startup script did not start MySQL.

This indicates that there is another database instance already running.

To start XAMPP properly, first you have to stop this daemon.

This command will stop MySQL:

sudo space /etc/init.d/mysql space stop

Switch to browser http://127.0.0.1 Resolve all the errors and get XAMPP running successfully.

Then switch to your web browser and refresh the page.

Select English if prompted. If prompted for language selection, select English.
Slide 10:


Adding a User and Creating database

We will now need to add a user and create a database for Moodle.

We will do this in phpmyadmin, which is the graphical user interface for MariaDB.

It comes along with the XAMPP installation.

Creating Database:

Click on phpmyadmin

Let us go back to the browser.

On the XAMPP page, in the menu at the top, click on phpMyadmin.

Click on Users accounts >> click on Add User account Click on User Accounts in the top menu and then click on Add User Account.
Type moodle-st In the new window that opens, enter a username of your choice.


I will type moodle hyphen st as my username.

Select Local from the dropdown From the Host drop-down list, select Local.
In Password textbox >> Type moodle-st Enter a password of your choice in the Password text-box.

I will type moodle hyphen st as my password.

Re-type moodle-st Type the same password in the Re-type textbox.


Keep the Authentication Plugin option as it is.

Point to the option Please do not click on Generate Password prompt for now.
Point to Create a database with the same name and grant all privileges Under Database for user account, we can see the option-

Create database with same name and grant all privileges.

Click on it >> Click on Go button We will check that option and click the Go button at the bottom right of this page.
Point to the moodle-st database in the side pane We can see a message “You have added a new user” at the top of the window.

It means a new database with the name moodle-st and with a user moodle-st has been created.

Make a note of the username, password and database names.

These will be required later to complete the Moodle installation.

Show Slide 11:

Rules and Naming Conventions

Please note:
  • Database name and username need not be the same.
  • To have different names, create the database first and then create a user for that database.
  • Also, as per naming convention, username should not have any spaces in between.
Point to the page We now have XAMPP running and our database is ready.

We are now ready to install Moodle.

We will continue with the installation of Moodle in the next tutorial.

With this, we come to the end of this tutorial.

Show Slide 12:

Summary

In this tutorial, we learnt:
  • About the prerequisites for installing Moodle.
  • How to check for the prerequisites and
  • How to setup the database
Show Slide 13:

(About Spoken Tutorial Project)

The video at the following link, summarizes the Spoken Tutorial project.

Please download and watch it.

Show Slide 14:


(About Spoken Tutorial Project)

The Spoken Tutorial Project Team conducts workshops and gives certificates.

For more details, please write to us.

Show Slide 15:

(About Spoken Tutorial Forum)

* Do you have questions in THIS Spoken Tutorial?
  • Please visit http://forums.spoken-tutorial.org
  • Choose the minute and second where you have the question
  • Explain your question briefly
  • Someone from our team will answer them
Show Slide 16: * The Spoken Tutorial forum is for specific questions on this tutorial
  • Please do not post unrelated and general questions on them
  • This will help reduce the clutter
  • With less clutter, we can use these discussion as instructional material
Show Slide 17:

(Acknowledgement)

Spoken Tutorial Project is funded by NMEICT, MHRD, Government of India.. More information on this mission is available at the link shown.
This script has been contributed by Priyanka.

This is Nancy Varkey along with the spoken tutorial team signing off. Thank you for joining.

Contributors and Content Editors

Itspriyanka, Nancyvarkey