First of all, you need to set up a LAMP environment to install Moodle on your Fedora system. We assume that you already have PHP, MySQL and Apache installed on your system. If you don’t have, use the following article to install it.

Install Apache, PHP, & MySQL on Fedora

Step 1 – Getting Moodle Application

After installing the composer on your Fedora system. Let’s create CakePHP application named “MyApp” using composer command as below. Now set the proper permission for your project files. For Red Hat based system Apache default uses apache as the user. So change files ownership as per your setup.

Step 2 – Setup Moodle Data

Create a Moodle data directory outside of the original Moodle directory. Set the proper permissions on the directory. This directory is used by Moodle to store data, files to this directory.

Step 3 – Create Database for Moodle

For this article, we are using MySQL as the database server. First use the following commands to create a MySQL database and create.

Step 4 – Setup Apache for Moodle

Second is deploy with external web servers like Apache it is preferred for production use. Let’s create an Apache VirtualHost configuration file using the following content. Change the ServerName and document root as per your setup. Then restart Apache service.

Step 5 – Run Moodle Web Installer

Now access the moodle in your favorite web browser. This will open the Moodle web installer page.

Follow the installation wizard to complete the setup. After installation, you will be redirected to Moodle admin dashboard.


You have successfully configured Moodle on your Fedora system.

How to Install Moodle 3 8 on Fedora 32 31 30   TecAdmin - 16How to Install Moodle 3 8 on Fedora 32 31 30   TecAdmin - 35