In this tutorial we will wake you through on how to install LMS Moodle to XAMPP Apache local server
Requirements
- XAMPP set up and running on your device
- Access to internet
Please note, in this tutorial we won’t be explaining how to install XAMPP and set it up.
- Download Moodle LMS
- Extract Moodle LMS
- Move extracted Moodle LMS to the local server directory
- Start Installation process
- Create database
- Connect Database
- Fix common errors
- Finish setting up Moodle LMS
1.Download Moodle LMS
go to Latest release | Moodle downloads and click the version you want and download it as zip. for this tutorial we will use Moodle 4.3.2+
![](https://tek-life.com/wp-content/uploads/2024/02/image-1024x622.png)
2.Extract Moodle LMS
after the download is complete go to the directory that holds the downloaded file and extract the files:
![](https://tek-life.com/wp-content/uploads/2024/02/image-1.png)
3.Move extracted Moodle LMS to the local server directory
Now after the extraction is complete head over to XAMPP, from XAMPP dashboard click over Explorer from the right buttons list.
![](https://tek-life.com/wp-content/uploads/2024/02/image-3.png)
Open the explore look for htdocs
and paste the extracted file inside htdocs
folder.
![](https://tek-life.com/wp-content/uploads/2024/02/image-4-933x1024.png)
![](https://tek-life.com/wp-content/uploads/2024/02/image-5.png)
Now you will need to go back to the XAMPP dashboard and start your Apache Server.
![](https://tek-life.com/wp-content/uploads/2024/02/image-6.png)
![](https://tek-life.com/wp-content/uploads/2024/02/image-7.png)
4.Start Installation process
Now go to your browser and Enter http://localhost:8080/moodle-latest-403
/moodlethe number at the end might differ depending on the assigned port for that, you can check it from the XAMPP dashboard. the moodle-latest-403/moodle
is the folder name that we copied to htdocs and isnide it there is a /moodle
folder.
now if everything is good you should see the installation page for Moodle.
![](https://tek-life.com/wp-content/uploads/2024/02/image-8-1024x527.png)
Choose the Language and Click on Next.
![](https://tek-life.com/wp-content/uploads/2024/02/image-9-1024x776.png)
these are default settings I suggest keeping it as it is. Click next.
we will see the Moodle Database selection, choose MariaDb and click next.
![](https://tek-life.com/wp-content/uploads/2024/02/image-10-1024x502.png)
![](https://tek-life.com/wp-content/uploads/2024/02/image-11-1024x736.png)
5.Create database
now on a different browser tab, go to `http://localhost:8080/phpmyadmin` you will see this screen.
![](https://tek-life.com/wp-content/uploads/2024/02/image-13-1024x646.png)
from left sidebar click on New and enter a name for your database and click on create. for example I entered ‘my_moodle_db’.
![](https://tek-life.com/wp-content/uploads/2024/02/image-14-1024x502.png)
6.Connect Database
Now, back to the Moodle installation tab, set the following fields accordingly.
- Database name: name of your database in our case `my_moodle_db`.
- Database user: `root`
- Database port:
3306
you can find this from the XAMMP dashboard next to the start button.
![](https://tek-life.com/wp-content/uploads/2024/02/image-15-1024x736.png)
it will a min to load ….. click on Continue.
![](https://tek-life.com/wp-content/uploads/2024/02/image-16-1024x502.png)
then you will have server checks (here if you have any issues you might need to resolve before you continue). In my case i don’t have any major ones so I can continue.
Don’t worry major issue will be marked with red color, and to solve these issues you can click on the link under the Report column.
![](https://tek-life.com/wp-content/uploads/2024/02/image-17-844x1024.png)
After you click on Continue it will take some time to install Moodle be patient.
![](https://tek-life.com/wp-content/uploads/2024/02/image-18-1024x505.png)
After it finish installation, you can click on Continue.
Now you can setup your Moodle general settings
![](https://tek-life.com/wp-content/uploads/2024/02/image-19-1024x496.png)
after you fill the required information click on Continue. We are not done yet.
![](https://tek-life.com/wp-content/uploads/2024/02/image-20-1024x468.png)
After the page loads for a while you might get this error, don’t worry I have a solution for you in the next step.
7.Fix common errors
go back to the directory of your XAMPP app, step 3. open `moodledata` folder
![](https://tek-life.com/wp-content/uploads/2024/02/image-21.png)
select then delete `cache` and `localcache` folders.
![](https://tek-life.com/wp-content/uploads/2024/02/image-22.png)
Now go to the browser and enter `http://localhost:8080/moodle-latest-403/moodle/admin`.
![](https://tek-life.com/wp-content/uploads/2024/02/image-23-1024x481.png)
You will be redirected to the login page of Moodle LMS. Congrats you created your own LMS
8.Finish setting up Moodle LMS
login using the coordinates you created on step 6 and start setting up yours LMS.
![](https://tek-life.com/wp-content/uploads/2024/02/image-24-1024x583.png)