Cannot view Moodle site over network

Cannot view Moodle site over network

by Sharon McGrath -
Number of replies: 2

Have just installed Moodle - Easy PHP 1.8, MYSQL and Apache.  Install easy and can now view site on localhost but cannot view over network.  Have tried to change localhost to relevant url but when I do this I cannot view on the local machine or over the network.

Please help.

Average of ratings: -
In reply to Sharon McGrath

Re: Cannot view Moodle site over network

by Jonathan Moore -
Start by confirming that you can ping the server by its IP address from a client computer over the network. If this works then in config.php on the server try changing references to localhost to the IP address. Save the file and attempt to login from the client on the network again.

If this doesn't work can you post the error message you are receiving?

Once switch while accessing the page from the server you will have to enter the IP address url instead of localhost for it to work. Once the IP address is working you can trying switching to a domain name if you are assigning one. If it breaks at that point then try pinging the server again from the client but this time us the domain name. If it can't ping then it is probably a dns issue.
In reply to Sharon McGrath

Re: Cannot view Moodle site over network

by andrzej marczewski -
Make sure that the config file points to the name of your server not to local host.  We had the same problem.  Our server is called moodlehost but we set the config up as localhost and could only view it on the server!!