top of page
  • Facebook
  • Instagram
  • LinkedIn
  • X
  • Whatsapp
Search

Step-by-Step Guide: Installing Moodle on Windows Server with Apache, MySQL, and SSL

Setting up Moodle on a Windows Server involves careful configuration of Apache and MySQL services, creating a database, and securing your site with an SSL certificate. Here's a detailed guide to get you started:


1. Create a Localhost Record


Edit the hosts file in Windows to include your Moodle server domain:



This ensures "training.matchanb.in" resolves to the localhost server IP address.


2. Download and Extract Moodle



3. Start Moodle


Navigate to the C:\Moodle folder and run:


Start Moodle.exe

4. Access Moodle via Browser


Open Google Chrome and access:



Note: Avoid using "localhost" or the server IP address for configuration to prevent issues when making Moodle publicly accessible.


5. Configure Moodle Database


Follow the prompts to:


  • Set up the Moodle database.

  • Create an admin user and password.


6. Install Apache and MySQL as Services


Run the following commands in the terminal to install Apache and MySQL as Windows services:


Apache:

httpd.exe -k install -n "Apache"

MySQL:

mysqld.exe --install MySQL --defaults-file=C:\Moodle\server\mysql\bin\my.ini

7. Secure Moodle with SSL (Let’s Encrypt)


  • Download and install the Certify The Web software.

  • Obtain an SSL certificate for training.matchanb.in.


8. Configure Deployment Tasks

Set up deployment tasks to copy the SSL certificates to Moodle’s Apache directory:

C:\Moodle\server\certificate\cert.pem
C:\Moodle\server\certificate\private.pem
C:\Moodle\server\certificate\Fullchain.pem
C:\Moodle\server\certificate\chain.pem

9. Automate Apache Service Management


For deployment tasks, automate these steps:


  1. Stop the Apache Service.

  2. Deploy the updated SSL certificates.

  3. Start the Apache Service.


10. Update Apache Configuration for SSL


Modify the Apache configuration file to include the SSL certificate paths:

SSLCertificateFile "C:/Moodle/server/certificate/cert.pem"
SSLCertificateKeyFile "C:/Moodle/server/certificate/private.pem"
SSLCertificateChainFile "C:/Moodle/server/certificate/chain.pem"
SSLCACertificateFile "C:/Moodle/server/certificate/Fullchain.pem"

Restart the Apache service to apply changes.


Congratulations! Your Moodle installation is now up and running on a secure Windows server. 🚀


💡 Pro Tip: Regularly update Moodle and your certificates to ensure security and performance.


Feel free to share your thoughts or questions below. Let’s build a robust learning environment together! 💻🎓


Comments


MatchAnB Solution | Best IT solution

With over 25 Years of experience in IT infrastructure, Matchanb.in has a deep technical understanding and a proven ability to adapt to the ever-evolving technology landscape. Let us help you navigate the complexities of modern IT with expertise and confidence.

Opening Hours

Mon - Fri: 9am - 6pm IST
​​Saturday: 10am - 2pm IST
​Sunday: Closed

Address

D-84, Palm Greens, 
Nr. White field, Behind: Divya Bhashkar, Makarba Road, Makarba,

Ahmedabad -380051
Gujarat, India

  • Facebook
  • Instagram
  • LinkedIn
  • X
  • Whatsapp

Copyright © MatchAnb Solution

bottom of page