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
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.
Please, Can you share exact location of moodle's config.php file.
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.
Kindly share for MAC
Login to add comment
Login to add comment