How to Install Moodle: 4 Methods (2024)

Website Development Production

Jun 27, 2024

Tomas A. & Tashia T.

7min Read

Moodle is one of the most popular learning management systems (LMS), with more than 272 million users worldwide.

It provides a personalized online learning experience and relevant services, all integrated into a single system for its users – mostly school administrators, educators, and students.

There are a few ways of installing Moodle on a web server. In this article, we’ll explain four different approaches – automatically, on a VPS, manually, and locally. Depending on your technical knowledge, these methods to install Moodle can be suitable for IT professionals and beginners.

Let’s begin.

How to Install Moodle: 4 Methods (1)

How to Install Moodle Automatically

For automatic installation, users can utilize the installer provided in the control panel of their web hosting provider. With Hostinger, installing the Moodle platform is simple using the intuitive one-click installer on hPanel.

To use hPanel’s one-click installer for Moodle, follow these steps:

  1. Log in to hPanel.
  2. Click Hosting on the navigation bar, find your domain name, and click the Manage button.
  3. Scroll down to the Website section and click on Auto Installer.
  4. When choosing the CMS to install, click the Select button for Other.
How to Install Moodle: 4 Methods (3)
  1. Pick Moodle LMS from the drop-down menu and hit Select.
  2. After filling in the required fields, click Install.
How to Install Moodle: 4 Methods (4)

When the installation process is complete, Moodle will appear under the List of Installed Applications.

To visit your Moodle site, simply click on the URL provided and log in to the site administration page using your admin username and password.

How to Install Moodle on a VPS

Installing Moodle on a virtual private server (VPS) offers enhanced performance, security, and customization. This method is particularly recommended for those seeking an efficient and scalable Moodle deployment.

Fortunately, Hostinger’s VPS hosting plans offer an Ubuntu 22.04 64bit with Moodle operating system template. You can find more details on our Moodle VPS hosting page. This template simplifies the installation process, enabling a seamless one-click setup of Moodle for our customers.

Here’s how you can install the Moodle template on your VPS:

  1. Log in to your Hostinger account and navigate to the VPS section.
  2. Select the server you wish to use for the Moodle installation.
  3. In the OS & Panel section, click on Operating System.
How to Install Moodle: 4 Methods (6)
  1. Under the Applications category, find and select the Ubuntu 22.04 64bit with Moodle template.
  2. After choosing the template, a description will appear. Click on Change OS to apply this template to your VPS.
How to Install Moodle: 4 Methods (7)

Once the installation is complete, you will find login details to access Moodle.

How to Install Moodle: 4 Methods (8)

How to Install Moodle Manually

If your web hosting provider doesn’t have an auto-installer for Moodle, follow this step-by-step guide on installing it manually.

1. Prepare for the Moodle Installation

Before proceeding with the manual installation process, don’t forget to take care of these aspects:

  1. Download the latest Moodle package from its official website.
  2. Upload the file to your website using the File Manager or an FTP client like FileZilla. In this tutorial, we’ll use the File Manager. Log in hPanel, click Hosting from the navigation bar, find your domain name, and click Manage.
  3. On the Hosting Account page, scroll down to the Files section and click File Manager.
  4. Click on public_html -> Upload Files icon from the menu bar and choose File from the pop-up window.
How to Install Moodle: 4 Methods (9)

Important! Please note that the choice of upload location will matter. For example, if you wish to install Moodle on your main domain name (www.yourdomain.com), you will need to upload the files directly to your public_html folder.

  1. Click Select Files, select the Moodle installation package you downloaded, and click the Upload button.
  2. Right-click on the uploaded Moodle file and select Extract. Enter the folder name for the extraction and click the Extract button.
How to Install Moodle: 4 Methods (10)
  1. Create the MySQL database for your Moodle site. Return to hPanel’s Hosting Account, scroll down to the Databases section, and click MySQL Databases.
  2. Fill in the database name, username, and password. Copy the information for later and click Create.
How to Install Moodle: 4 Methods (11)
  1. Return to the File Manager, click public_html and locate config-dist.php. Create a copy of the file and edit the database information. Make sure to include the string of numbers in front of your database name and username.
How to Install Moodle: 4 Methods (12)

2. Install Moodle

Now that you’ve uploaded all the files on a MySQL database server, let’s install Moodle.

  1. Access the URL of the Moodle files in your domain. If they are located in the public_html folder, access it as it is: www.yourdomain.com. If they are installed on a subfolder named moodle, for example, type: www.yourdomain.com/moodle.
  2. Select a language and click Next.
  3. Make sure the correct Web address and Moodle directory are displayed. Leave the Data directory as it is, or change the location.
How to Install Moodle: 4 Methods (13)
  1. Return to your File Manager and open the copy of config-dist.php you’ve made earlier. Scroll down to find Web Site Location and Data Files Location. Edit the wwwroot and dataroot values with your Web address and the Moodle Data directory.
How to Install Moodle: 4 Methods (14)
  1. Save and Rename the file to config.php. Return to the Moodle setup page and select Next.
  2. Select either Improved MySQL or MariaDB as your database type. For this tutorial, we’ll use the second option.
  1. Enter the information of your MySQL database that was previously created in the required fields and click Next.
  2. If the configuration file is set correctly, a copyright agreement will appear. Click Continue. The installation will start by checking if all the required settings, such as storage capacity, are available and enabled properly on your hosting.
How to Install Moodle: 4 Methods (15)
  1. Click Continue during the checks until you arrive at the administrator setup page. Fill in the required information and click Update Profile.
How to Install Moodle: 4 Methods (16)
  1. Add the Front Page information, where you set the full name of your Moodle site, the summary, timezone, and disable or enable user self-registration.
How to Install Moodle: 4 Methods (17)

The installation process is now complete. Continue to make necessary changes in the admin area to get your Moodle site up and running.

How to Install Moodle on Localhost

Installing Moodle on localhost is useful for trying out its interface and features before performing production installations.

To install the Moodle platform on localhost, follow the instructions below:

1. Check the Moodle System Requirements

Go to the official Moodle site and click on Downloads on the navigation bar. Find the latest version of Moodle, choose your preferred file format, and click on the corresponding download button.

In this tutorial, we’ll download Moodle 3.10.3+ in .zip format.

How to Install Moodle: 4 Methods (18)

You also need software stacks such as XAMPP or WAMP. In this tutorial, we’ll use XAMPP.

2. Use XAMPP

Access the Apache Friends website and click on the XAMPP download link that corresponds to your operating system. Click on Click here for other versions to download other versions of XAMPP.

How to Install Moodle: 4 Methods (19)

Make sure the XAMPP version you choose to download is compatible with the version of Moodle you downloaded.

For example, Moodle 3.10.3+ is not compatible with PHP 8.0.3 since it requires PHP 7.2. Download the XAMPP version that meets this requirement, such as XAMPP 7.3.27.

How to Install Moodle: 4 Methods (20)

Launch XAMPP to access the XAMPP control panel. Click Start for both Apache and MySQL.

How to Install Moodle: 4 Methods (21)

Once done, the control panel should look like this:

How to Install Moodle: 4 Methods (22)

3. Create a Database

If you are using the version of Moodle that comes after Moodle 3.x, creating a database is no longer mandatory.

However, you can still create an empty database to sync when Moodle requests database information during the installation process.

In this tutorial, we’ll access phpMyAdmin via XAMPP.

Type localhost/phpmyadmin/ into your web browser’s address bar. Click New from the left sidebar menu.

How to Install Moodle: 4 Methods (23)

Fill in the Database name field and leave everything else as it is. Click Create to finish the database creation process. The database you have created should appear on the left sidebar menu.

How to Install Moodle: 4 Methods (24)

4. Extract the Moodle Files

Find the Moodle .zip file you downloaded on your computer. Right-click on the .zip file, find the option to extract the files, and select the XAMPP’s htdocs folder as the destination for the extraction.

How to Install Moodle: 4 Methods (25)

When the extraction process is complete, you will see that a folder named moodle has been created in XAMPP’s htdocs folder. This folder contains all of Moodle’s files.

5. Proceed With the Moodle Installation

After preparing all the necessary components, follow these steps to begin the installation:

  1. Type localhost/moodle/ into the web browser’s address bar and wait until the installation page appears. Choose your preferred language and click Next.
  2. On the Paths page, type in the Moodle data directory you want in the Data directory field or leave it as it is. The values in the Web address and Moodle directory fields are not modifiable. Click Next when you are done.
How to Install Moodle: 4 Methods (26)
  1. Select MariaDB from the drop-down menu and click Next.
  2. Fill in the Database user field with root. Write the MySQL port number on the XAMPP control panel in the Database port field. Leave the Database password field blank for local installation, but you must set a password for production installations. Click Next.
How to Install Moodle: 4 Methods (27)
  1. Read the copyright notice and click the Continue button to proceed to the server check.
  2. During the server check, you may run into an error message asking you to enable Intl PHP Extension, such as the screenshot below.
How to Install Moodle: 4 Methods (28)
  1. To enable Intl PHP Extension, find the php.ini file in the XAMPP folder on your computer. Using a plain text editor, scroll down and add the following command line to the file: extension=php_intl.dll
How to Install Moodle: 4 Methods (29)
  1. Find the intl.default_locale and intl.error_level directives in the php.ini file and enter the following values:
[intl]intl.default_locale = en_utf8intl.error_level = E_WARNING
How to Install Moodle: 4 Methods (30)
  1. Locate extension=intl, extension=openssl, extension=soap, and extension=xmlrpc in the php.ini file. Make sure there are no semicolons coming before them. If they are, simply delete them. Afterward, save changes and close the plain text editor.
How to Install Moodle: 4 Methods (31)
  1. Go to the XAMPP control panel and restart Apache. Press the Stop button beside Apache. When it turns to a Start button, press it again.
How to Install Moodle: 4 Methods (32)
  1. Return to the installation page, scroll down and click Reload.
How to Install Moodle: 4 Methods (33)
  1. If the error is fixed, the error message should disappear. The Continue button should appear at the bottom of the page. Click on it to proceed to the installation page.
How to Install Moodle: 4 Methods (34)
  1. The installation should start automatically. After the process is complete, click the Continue button at the bottom of the page.
How to Install Moodle: 4 Methods (35)
  1. After creating your main admin account by filling in the required fields, click the Update profile button.
  2. Configure the Front page settings, such as the site name, front page summary, location settings, authentication system, and outgoing mail configuration.

Conclusion

Moodle is a versatile learning management system catering to a wide range of users, from students to educators. There are four different ways to install the Moodle platform on your web server – automatically, on a VPS, manually, and locally.

Each method caters to different needs, whether you prefer the simplicity of automatic installation, the robustness of a VPS, the control of manual installation, or the convenience of a local environment.

We hope this comprehensive guide assists you in your educational journey. For further inquiries, feel free to comment below!

Learn More About Website Building

15 Best CMS Platforms to Start a Website
Do I Need a Website for My Small Business?
Website Launch Checklist
How to Make a Website From Scratch
30+ Most Successful Website Ideas to Make Money
How to Build an eLearning Site in 5 Steps

How to Install Moodle: 4 Methods (37)

The author

Tomas A.

Tomas provides top-notch technical advice on a daily basis to our valued customers. He also likes to create websites and do various coding side projects.

More from Tomas A.

How to Install Moodle: 4 Methods (38)

The Co-author

Tashia T.

Tashia is passionate about all things website development, digital marketing, and eCommerce. She strives to spread her knowledge and help people navigate the online world through her words, one article at a time.

More from Tashia T.

How to Install Moodle: 4 Methods (2024)
Top Articles
What Is an ERC20 Wallet and How Does It Work?
PIV slots
Cold Air Intake - High-flow, Roto-mold Tube - TOYOTA TACOMA V6-4.0
Television Archive News Search Service
Jazmen Jafar Linkedin
Southeast Iowa Buy Sell Trade
Wal-Mart 140 Supercenter Products
Nieuwe en jong gebruikte campers
Infinite Campus Parent Portal Hall County
Citymd West 146Th Urgent Care - Nyc Photos
Los Angeles Craigs List
Hijab Hookup Trendy
D10 Wrestling Facebook
Shannon Dacombe
Pricelinerewardsvisa Com Activate
Harem In Another World F95
Unity - Manual: Scene view navigation
Weepinbell Gen 3 Learnset
How To Level Up Roc Rlcraft
[PDF] NAVY RESERVE PERSONNEL MANUAL - Free Download PDF
Magic Seaweed Daytona
SN100C, An Australia Trademark of Nihon Superior Co., Ltd.. Application Number: 2480607 :: Trademark Elite Trademarks
Best Sports Bars In Schaumburg Il
Greyson Alexander Thorn
The Creator Showtimes Near R/C Gateway Theater 8
Gilchrist Verband - Lumedis - Ihre Schulterspezialisten
Regina Perrow
Blackboard Login Pjc
4 Methods to Fix “Vortex Mods Cannot Be Deployed” Issue - MiniTool Partition Wizard
2023 Ford Bronco Raptor for sale - Dallas, TX - craigslist
Rural King Credit Card Minimum Credit Score
Astro Seek Asteroid Chart
Housing Intranet Unt
Math Minor Umn
Puretalkusa.com/Amac
Old Peterbilt For Sale Craigslist
Trap Candy Strain Leafly
2700 Yen To Usd
Trivago Sf
Strange World Showtimes Near Century Stadium 25 And Xd
BCLJ July 19 2019 HTML Shawn Day Andrea Day Butler Pa Divorce
Csgold Uva
Lyons Hr Prism Login
Frequently Asked Questions
Dancing Bear - House Party! ID ? Brunette in hardcore action
Dobratz Hantge Funeral Chapel Obituaries
Scott Surratt Salary
Horseneck Beach State Reservation Water Temperature
Ics 400 Test Answers 2022
Kobe Express Bayside Lakes Photos
What Responsibilities Are Listed In Duties 2 3 And 4
Pauline Frommer's Paris 2007 (Pauline Frommer Guides) - SILO.PUB
Latest Posts
Article information

Author: Velia Krajcik

Last Updated:

Views: 6007

Rating: 4.3 / 5 (54 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Velia Krajcik

Birthday: 1996-07-27

Address: 520 Balistreri Mount, South Armand, OR 60528

Phone: +466880739437

Job: Future Retail Associate

Hobby: Polo, Scouting, Worldbuilding, Cosplaying, Photography, Rowing, Nordic skating

Introduction: My name is Velia Krajcik, I am a handsome, clean, lucky, gleaming, magnificent, proud, glorious person who loves writing and wants to share my knowledge and understanding with you.