They are having problems to give access to their Moodle in their LAN just because they use the default "localhost" or "127.0.0.1" as the IP for Moodle and the Apache web server.
The IP is the identifier for any computer in the network. "localhost" or "127.0.0.1" is a default IP for any computer (it means something like "me"). The real IP is the 4 numbers identifying the computer in the network (it means something like your social security card number). It could be 192.168.0.1, for example.
To make Moodle work in an Intranet or small LAN (Local Area Network), such as a home network of office network, is a 3 step process:
1) Get the IP of the computer running Moodle inside the LAN. In Windows, you can get this quickly: "Start Menu" / Run... / command (hit enter and a black command prompt is opened), and then in the command prompt type ipconfig (hit enter). The IP is the 4 numbers next to "IP address". For example: 192.168.0.1
2) At the directory where you installed Moodle, edit config.php and set your
$CFG->wwwroot = 'http://IP/moodle';
where IP is the IP you got in step 1. Save it and now Moodle will know his real IP.
3) At the directory where your Apache web server is installed, there should be a subdirectory called conf. Edit your httpd.conf file there and set your
ServerName IP
where IP is the IP you got in step 1. Save it and now your Apache web server will know his real IP.
After following this 3 step process, any computer in your network should be able to use your Moodle server. Pretty easy!
Just a little thing: be sure that the computer running Moodle has an static IP address (one that does not change). Many admins use dynamic IP addresses by default (they change everytime you login), using a process called called DHCP. If you cannot get an static IP from your network admin, you will have to repeat the 3 steps any time you login in your computer.
Perhaps another question for the FAQ, Martin?
