Problem with "Course Developers" logging into moodle server

Problem with "Course Developers" logging into moodle server

door Asterion Daedalus -
Aantal antwoorden: 6

I have set moodle up to run on my desktop so that other developers in my team can create user manual and training material.

It appears happy to work on my machine but if other team members url to my machine they get a page reporting errors with the unformatted page displayed (suggesting loss of access to css files); and links to, say, the login page refer to "localhost" and so fail when selected as the links are looking for non-existant resources on their client machines.

I have had a look at the settings under admin but nothing obviously looks to fix the problem.

Is this a server configuration problem?  I tried having the users soften their security around cookees but naught.

I am running a l.8.2+ installation from scratch.

Gemiddelde van de beoordelingen:  -
Als antwoord op Asterion Daedalus

Re: Problem with "Course Developers" logging into moodle server

door Martin Dougiamas -
Foto van Core developers Foto van Documentation writers Foto van Moodle HQ Foto van Particularly helpful Moodlers Foto van Plugin developers Foto van Testers
Your $CFG->wwwroot in your config.php should not be http://localhost ... you need to use an IP number or DNS name that refers to your machine from all over your network.

eg something like http://192.168.10.54
Gemiddelde van de beoordelingen:  -
Als antwoord op Martin Dougiamas

Re: Problem with "Course Developers" logging into moodle server

door Asterion Daedalus -

Cheers.

I will manually set it then as I tried reinstalling from my machine and same, and then installed onto my machine but logged on via someone elses machine to complete installation and same same.

Ray

Gemiddelde van de beoordelingen:  -
Als antwoord op Martin Dougiamas

Re: Problem with "Course Developers" logging into moodle server

door Asterion Daedalus -

Nope,

In fact wwwroot was set properly.

I noted when either setting up on my machine, or via a remote machine, the host in the setup wizard was reporting "localhost" both times.  This despite the config.php being set to raw http url.

Cheers,

Ray

Gemiddelde van de beoordelingen:  -
Als antwoord op Asterion Daedalus

Re: Problem with "Course Developers" logging into moodle server

door Richard Enison -

AD,

Are the other developers accessing your machine through a LAN or the Internet? If you have wwwroot set to your local network IP and they are going through the Internet, or vice versa, it won't work.

Here are some posts you might find useful if you want your machine to be accessible both ways:

http://moodle.org/mod/forum/discuss.php?d=65450#294950

http://moodle.org/mod/forum/discuss.php?d=71652#p320875

http://moodle.org/mod/forum/discuss.php?d=68990#p309794

RLE

Gemiddelde van de beoordelingen:  -
Als antwoord op Richard Enison

Re: Problem with "Course Developers" logging into moodle server

door Asterion Daedalus -
I will be deploying the site behind the firewall for internal consumption only if that makes a difference. I will have a look at the posts suggested to see if they help so thanks.

To date though, the users were trying to connect through the LAN behind the same firewall.

So, I am still bemused that if I set up my machine as the server and connected via the clients on the LAN why the HTTP at the client end is rendered with "localhost" substituted as the host address and not the resolved IP. I don't imagine, for example, I should have to install moodle on all client machines just so the client machines can pick up the css and other resources locally.

As I have noted, during the initial setup wizard I saw that the installation had detected that the IP address was the local host and is seems to subsequently hard code localhost into the wizard dialog prompts. Presumably then it hard codes localhost into HTTP posts (which appears to be the root of the problem).

The more curious thing being that wiping the installation out, re-installing and then running the setup wizard from another machine (aka client) saw the same problem.

One thing I have to try is substituting the DNS name of my machine in WWW_Root, instead of the raw IP, to see if this sorts it out.

Cheers,
A
Gemiddelde van de beoordelingen:  -
Als antwoord op Asterion Daedalus

Re: Problem with "Course Developers" logging into moodle server SORTED!!!!!

door Asterion Daedalus -

Doh!

Yes, brain the size of a planet.  Too highly trained.

I replaced the raw IP of my machine in the www.root with its DSN name and the other course developers can see it.  Still begs the question why moodle is translating the ip address to "localhost" where it detects that the two are one.

AD

Gemiddelde van de beoordelingen:  -