To update the Moodle URL (domain Name) from an IP address number to a GoDaddy domain do the following:
- Point GoDaddy (or where you bought your URL) DNS to Digital Ocean/Linode/AWS.
2. change config.php to:
$CFG- >wwwroot = ‘http://domian.com’:
And upload the config.php file to /var/www/html/moodle
3. Restart Apache server:
sudo service apache2 restart
4. Update the Moodle Link files and Moodle Database. Here is how:
http://www.inmotionhosting.com/support/edu/moodle/advanced-tutorials/change-url
-----