This website uses cookies in order to offer you the most relevant information and services online. Please accept cookies for optimal performance.
Learn More

Install Moodle on Linux Hosting Server

Moodle is a learning platform designed to provide administrators and learners a secured and integrated system to create personalized learning environments.

Moodle is an Open Source learning platform designed to provide educators, administrators and learners with a single robust, secured and integrated system to create personalized learning environments. It is written in PHP and requires a MySQL database. Moodle is free to download and use.

Download the latest stable Moodle installation package from download.moodle.org
Note: Typically the download will be in a .zip or .tgz format. You need to check the server configuration required for Moodle to be installed on the server prior to attempting to install it.

Once a copy of the Moodle is downloaded, the file can be extracted on the local computer and the uploaded to the root location for the Moodle install. Please note that when extracting and uploading the files to the server, the extracted file will put the files in a subfolder (called "moodle"). Select all the files within the "moodle" folder and upload it to the root location (under your public_html directory) using an FTP client. You can check our help article in order to learn how to upload files through an FTP client (FileZilla).

For the Moodle to be installed, you need to create a database with a user added to it. You can check our help article in order to learn how to create and manage MySQL databases with cPanel on Linux.
Note: Please ensure that the database name, the username and password for the user are saved in a notepad or any other text editor so they can be referenced later during the installation process.

Once all the files are uploaded, the installation is done through the browser by visiting the location where the Moodle was uploaded.
Note: If Moodle is being installed on a subfolder the url will look similar to the following.

SubFolder
https://example.com/moodle

Subdomain
https://moodle.example.com

When you visit for the first time, the Choose a Language screen will show at as shown in Figure 1. Select the required language and click Next.

Figure 1
Figure 1

Upon doing so the next screen will prompt you to confirm the installation paths for the Moodle installation as shown Figure 2. The Web Address and the Moodle directory should be set by the install script by default. The Data Directory will be set as well; but you can change it if you want the installation in a different directory location on your server. Leave the default paths and click Next.

Figure 2
Figure 2

Upon doing so the next screen will prompt you to choose the database driver as shown Figure 3. The database driver is what your server will use to connect to the database. On Linux/cPanel servers, the setting required is Improved MySQL (native/mysqli). Select Improved MySQL (native/mysqli) from the drop-down and then click Next.

Figure 3
Figure 3

Upon doing so the next screen will prompt you to enter the Database name, Database user and Database password that you had created earlier as shown Figure 4. Leave the table prefix as it is. Leave the Unix Socket setting unchecked and click Next.

Figure 4
Figure 4

Upon doing so the next screen will prompt you to accept the terms of General Public License as shown Figure 5. Select Continue to go to the next install screen.

Figure 5
Figure 5

Upon doing so, the administration set up screen will load for setting up the main administrator account as shown Figure 6. Once you complete setting the administrator, click Update profile.

Figure 6
Figure 6

Upon doing so, the New Settings - Front Page settings page. Fill out the Full site name, Short name for the site, Front page description and the Self registration. Then click on Save changes.
Note: These settings are not so critical as they can always be updated through the Moodle administrator backend after installation.

Figure 7
Figure 7

Upon doing so, the base Moodle home page will load and should look like the image as shown Figure 8.

Figure 8
Figure 8

After setting up Moodle on the server, the Moodle administrator dashboard will be accessible.

Give your feedback to improve the article

Latest Product Updates

Get the latest news and updates about Batoi Products - articles and product releases.

Need our assistance? We are available with you.

Existing Customer?
Get Support
Talk To Consultant?
Get An Appointment
Contact Us

Batoi global offices and contact details

Stay Connected

Join our community, newsletters, and social media.

Batoi's Annual Cloud Conclave is coming soon. Please watch out.