URL problem

URL problem

by sri sant -
Number of replies: 7
Hi,


I am using moodle 2.o, while installing by default it take the url http://localhost:8081.
i can able to see this stored in config.php it locally working fine, i want access in LAN environment so i change the URL in config.php to $CFG->wwwroot = 'http://192.168.1.109:8081'; but if i try to access make use http://192.168.1.109:8081/ this url following msg are dislay

Incorrect access detected, this server may be accessed only through "http://localhost:8081" address, sorry.
Please notify server administrator.

please pass any solution

Average of ratings: -
In reply to sri sant

Re: URL problem

by Kenan Hodzic -
I have the same problem.
If locally = fine,
If from network = problem.
Actually, I did not change anything in PHP file, and from network I can see calendar, navigation and main menu without formating...and that error message in the middle.
So, we are two now, is there anyone there can help us? Anyone? sad
In reply to sri sant

Re: URL problem

by Colin Fraser -
Picture of Documentation writers Picture of Testers
Firstly, Moodle v2.0 is not really a production version yet - it is still in testing stages .. so do not worry too much, there is bound to be a lot of little bugs.

Is there a reason that you are using port 8081 and not 8080 or even port 80? Has this been properly added in your server? I am assuming that your local machine has been set up to the 192.168.1.109 address properly as well, so the issue may be with the port. Has the network mask be set properly? Has the folder permissions been appropriately identified and reset accordingly? We cannot assume they have - we always do, and they nearly always are, but we shouldn't assume too much here.

We must, I suspect, consider the possibility that Moodle 2.0 has been limited to the local machine by programming. There may be something in the documentation somewhere that indicates if the dev team has deliberately done this to make sure that no-one attempts to use it as a production site before it is really ready for that. You know yourself that negative first impressions are the hardest to shake. The possibility of getting a dud version of 2.0 would be far too easy, which would influence us, no matter how good previous versions are. If you get a dud early, it will wreck any positive impression thereafter - so you may chose not to continue using Moodle at all.

Doing what Martin and the team are doing is extremely risky, for negative perceptions are always very difficult to overcome. A++ for courage and belief in the product, but...
In reply to Colin Fraser

Re: URL problem

by Kenan Hodzic -
Thanks for reply.
I switch to version 1.9.7+, but find the same problem. so, after few attempts...I solve it!

In "config.php" I just change (wwwroot='localhost') into my server's IP, and it worked fine.

Hope this will help some beginners like me smile.
Best Regards.
In reply to Kenan Hodzic

Re: URL problem - The permanent fix

by De Don -

Hi there, i am here with goood news!

This is not a bug as many people say.

I really do not know why but moodle 2.0 differentiate between http://moodle.com and http://www.moodle.com. So my advice to you when you upgrade to moodle 2.0... is that you do not miss your web trail (www.) when you construct your external login form.

Thank you and try to tell everyone, there are many which experience the same problem.

This is the second post i am posting this fix, so guys sorry if i do not post it in the right forum but i see this problem everywhere since moodle 2.0 stable release. I just hope i could  help.

In reply to De Don

Re: URL problem - The permanent fix

by Ernani da Silva -

After change to moodle 2.0 I am facing a lot o problem. I can not even change the user profile.

Any tip?

In reply to Ernani da Silva

Re: URL problem - The permanent fix

by De Don -

hey, hello, please be more specific. Try to explain what is happening, i don't follow...