Home » Support » Help Articles » Install Moodle on Linux Hosting Server

Install Moodle on Linux Hosting Server

Back to Help Articles Home


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

  1. 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.
  2. 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).
  3. 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.
  4. 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

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

  7. Upon doing so the next screen will prompt you to confirm the installation paths for the Moodle installation as shown below. 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.
  8. Figure Two

  9. Upon doing so the next screen will prompt you to choose the database driver as shown below. 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.
  10. Figure Three

  11. 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 below. Leave the table prefix as it is. Leave the Unix Socket setting unchecked and click Next.
  12. Figure Four

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

    Figure Five

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

  16. 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.
  17. Figure Seven

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

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



Updated on Aug 31, 2016

The techReview is an online magazine by Batoi and publishes articles on current trends in technologies across different industry verticals and areas of research. The objective of the online magazine to provide an insight into cutting-edge technologies in their evolution from labs to market.

Visit techReview


English - IN (USD)
New Users? Signup.     Existing Users? Login.