saving . . . saved How do i share Installed Moodle from Local Server to local Intranet Computers through Private IP. has been deleted. How do i share Installed Moodle from Local Server to local Intranet Computers through Private IP. has been hidden .
How do i share Installed Moodle from Local Server to local Intranet Computers through Private IP.
Title
Question
Dear Sir/Madam,

I have installed Moodle on local server and doing every activity on it through http://127.0.0.1/moodle. But now i want to share resources/teaching Material/Assignment/Quizes to students in the intranet.

I am trying access on my local server trough IP address of Sever, but it is only showing like this URL http://127.0.0.1/moodle. Means it is installed on Local server.

But, I want to share/access Moodle in the entire Intranet of campus.

Please help me and Solve my Problem.

Thanks.


Moodle-Learning-Management-System Installing-Moodle-on-Local-Server 03-04 min 50-60 sec 26-03-19, 4:20 p.m. raghunathkawale

Answers:

You will have to change the corresponding entry in moodle's config.php file.

Go to the moodle directory on your local server.
Edit the following entry in the config.php file -
$CFG->wwwroot = 'http://localhost/moodle';

change to -

$CFG->wwwroot = 'http://your_system's_ip_address/moodle';

Then, this moodle site can be accessed from any system on the LAN.

Let me know if you have any further queries.
27-03-19, 1:24 p.m. kashmira.n


Thanks Mam !
27-03-19, 1:29 p.m. raghunathkawale


Please, Can you share exact location of moodle's config.php file.

27-03-19, 3:08 p.m. raghunathkawale
On a Ubuntu system, generally the path to moodle's config.php file is like:
/var/www/html/moodle/config.php

Check these out -
- https://docs.moodle.org/36/en/Configuration_file
- https://moodle.org/mod/forum/discuss.php?d=354291

On Windows, the following link might be helpful -
- https://docs.moodle.org/36/en/Complete_install_packages_for_Windows#Moodle_paths

The path to 'Moodle directory' you had setup during installation.
Immediately under moodle folder, you will find the config.php file.

28-03-19, 2:06 p.m. kashmira.n

Login to add comment


Log-in to answer to this question.