This forum is no longer active. Please post your questions to our new community site
Access Moodle from external public machine
|
|
(Beltrán), our last conversation from I tried what you suggested: As you know, I am running this under Vmware 4.01 and Moodle (Bitnami Virtual Machine install)is running fine and accessible from with-in my network. I understand that I need to put my domain name into Moodle somehow, and I tried the command you suggested above with: As I am new with this could you give me some more details or is there something else I need to do. Can I not just make these settings logging into Moodle locally in one of the administration setting links and do it there also? I have dynDNS.com setup with moodle.q-prof.com, q-prof.com also takes me to the welcome bitnami page. I have forwarded my port on my firewall and that works or I would not be getting the Bitnami page from an external/public machine. |
|
|
Hi, I would add the following in your “/etc/hosts” file:
Where 192.168.1.XXX is the machine IP address in your LAN. This is to be accesssible from your local network. Then change the application IP:
This command only changes the hostname in the “/opt/bitnami/apps/moodle/htdocs/config.php”. If it does not work, replace the IP with your DynDNS name in this file manually. Then move the “updateip” tool to another folder to not ot change the IP once you reboot the machine. Please post if you find any issue and I’ll be glad to help you. |
|
|
Ok, host file edited with 192.168.1.XXX moodle.q-prof.com with XXX being the local static IP address as assigned by my Firewall as it is outside of my normal dynamic addressing and is confirmed by the mac address assigned by Vmware for this virtual machine when it was created. I entered your suggested command: So does this mean it worked, but was looking for an option entered with the command? At this point I can still enter moodle.q-prof.com in my local browser and it takes me to Moodle where I can then log-in. Skip to main content So I guess it did not work. :-( Sorry, I am not sure how to manually rename, nor move updateip tool in the virtual console – I am not a linux line command guy, although I have done some dos commands in the past… suggestions on how this is done would help. |
|
|
Beltran, |
|
|
Sorry, the correct command is: $ sudo updateip —machine_hostname YOUR_DOMAIN To move the “updateip” tool you can use the following $ sudo mv /opt/bitnami/updateip /home/bitnami |
|
|
Ok, I realized that I had to add the directory of where the updateip tool is to the command, so the command actually should be: There has been an error. (where XXX is the local address of the Moodle server) |
|
|
Oh, I also tried accessing the —help, but I get a lot of info all at once seeing only the last screen and not sure what the option/switch command is used to view a screen/page at a time – as this might have helped me. |
|
|
The exact commands that you should run is the following:
I hope it helps. |
|
|
That helped big time :-) Now I can log-in from external/public machines, and I can now start using this with my classes. I assume that if I were to use another computer with-in my LAN, that I will have to modify the host file also. I take it that there is nothing else that needs to be done on the console, and the rest of the configurations, settings, and set-up are all on the web interface right? Thanks for your support, patience, and expertise Beltran |
|
|
I’m glad to hear this! Enjoy! |

