Install Moodle on Linux Hosting Server
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.
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.
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.
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.
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.
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.
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.
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.
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.
Upon doing so, the base Moodle home page will load and should look like the image as shown Figure 8.
After setting up Moodle on the server, the Moodle administrator dashboard will be accessible.