How to make my moodle website become public

How to make my moodle website become public

by kelvin lee -
Number of replies: 6

hi,

i am newbie here. i wan to ask how to i make my moodle website become public mean not just for lan network, people can access anywhere.

i just can access using localhost and server ip address only, cannot access if i change wwwroot to http://Internet_Ip/moodle.

thank you. 


Average of ratings: -
In reply to kelvin lee

Re: How to make my moodle website become public

by whitegod k -

Hi,


you need one server to access

Average of ratings: Useful (1)
In reply to kelvin lee

Re: How to make my moodle website become public

by john Simpson -

Good question. Like I purchase a domain name, and use a web host. You need an address such as moodlecourses.com

Is there another way, as you definately need a domain name and address, don't you?

Average of ratings: Useful (1)
In reply to john Simpson

Re: How to make my moodle website become public

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

You should be able to access with an ip address but that ip address needs to be dedicated to the machine that your moodle is installed on.  So, if you are just trying to use the ip address that your whole house or school is using, it will not work.  The best way would be to put your moodle site on a web hosting service and get a domain name or set up a web server that has a dedicated external ip and then create a domain name to point to that ip address.

Average of ratings: Useful (1)
In reply to Emma Richardson

Re: How to make my moodle website become public

by Adam Jenkins -
Picture of Plugin developers

If you are trying to serve your own moodle on your own home server, there there are several things you need to do. You will need a domain name (some sites used to offer sub-domains for free back in the day), and you will need an ip address on the WAN side (if not static, you'll also need a dynamic dns provider), a static server ip address on the LAN side and admin access to your router.

So here's the play-by-play:

  1. Map your domain name to your WAN ip address (use this website to get your ip address).
  2. If your WAN IP address changes each time you go online you will need to use a dynamic dns client on your server (like ddclient) to update the mapping of the domain name when the ip address changes. Some routers can also perform this task more easily than configuring the server to do it. See also http://duckdns.org/why.jsp
  3. Make sure your server has a static ip address on the LAN.
  4. Setup port-forwarding in the router to direct traffic on port 80 (http) to the server (ie. the static ip address from step 2).
  5. Access the server using the domain name and install moodle (if you have previously installed moodle using the LAN, see the documentation on Moodle Migration).

Hope this helps!
Average of ratings: Useful (1)