Koozali.org: home of the SME Server

Moodle will not allow login from the internet

Offline Derle

  • *
  • 8
  • +0/-0
Moodle will not allow login from the internet
« on: January 07, 2009, 08:42:01 AM »
I have been pulling my hair for 3 days trying to get a working login to a moodle install.

Moodle 1.9
Installed into /opt/moodle using yum on SME 7.4

The site works perfectly and I have been adding all sorts of lessons.

I tried to access the site from outside the LAN and instead of the front page of the site I get a user name/password challenge.  When I supply the correct info the challenge boxes empty and the note indicates an incorrect login.  It is reading the config file as it tells me that I am trying to access the "education site" as entered into the config.

I have tried opening up the database to global according to instructions on this site.  I have checked and rechecked the configuration but I am really lost.  As i said earlier the site seems to work flawlessly until I try to access it from outside of the LAN. 

Any suggestions as to where I should go looking??

Thanks,
Earl.

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Moodle will not allow login from the internet
« Reply #1 on: January 07, 2009, 08:43:59 AM »
Can you please post the output of:

Code: [Select]
db configuration show moodle

Offline Derle

  • *
  • 8
  • +0/-0
Re: Moodle will not allow login from the internet
« Reply #2 on: January 07, 2009, 09:11:31 AM »
moodle=service
 DbName=moodle
 DbPassword=710168247650475
 DbUser=moodle
 Name=Online Learning
 PublicAccess=global
 cron=enabled
 status=enabled

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Moodle will not allow login from the internet
« Reply #3 on: January 07, 2009, 11:25:51 AM »
That's the correct setting, so it's possible that something is going wrong with the package.

Can you please file a report on the bug tracker and post the bug number here as a reference?

Thanks :)

Offline Derle

  • *
  • 8
  • +0/-0
Re: Moodle will not allow login from the internet
« Reply #4 on: January 20, 2009, 06:06:22 AM »
OOPS!  :oops: I must shamefacedly admit to creating  the problem on install.   I used a custom database instead of the default one.  This included the use of an existing database user and password.  On closer inspection I noted that moodle had set up it's default database but that it contained no tables.  I copied the tables over to the default database and reset the paths to the default settings and everything works. 

Odd how the setup worked locally with the oddball settings but would fail when queried from the outside.  Anyways - :grin: all is good here.  Excellent piece of software!

Thanks for the help.

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: Moodle will not allow login from the internet
« Reply #5 on: January 20, 2009, 12:59:59 PM »
Earl,
Coincidentally I was about to do the same thing as you did, upgrading the old version to 1.9.
Besides the problem related, did you have any other issues?

Thanks,