Assign Domain Name to Moodle

Assume you already have a free domain name such as:

  • trainingmoodle.epizy.com (InfinityFree)
  • Or you can purchase a domain name, e.g.: yourwebsite.com
  1. Access the config.php file of Moodle using PowerShell
  • Use the command sudo nano /var/www/html/moodle/config.php.
  • Find the line $CFG->wwwroot = ‘http://54.255.26.77/moodle’;.
  • Change it to $CFG->wwwroot = ‘http://yourwebsite.com/moodle';.

S3

Next, we will create an S3 bucket to storage session logs.