loginhttps Desabled

loginhttps Desabled

by Ana Graça Filipe -
Number of replies: 9
Hi all,

I was looking in other posts some ideias to workarround my problem, but I coun't find any sad

Well, my problem is:

I've installed Moodle 1.4.2 from scratch. Everything is working fine, but now, I want to use https in login process, so I went on installing apache-ssl in the server (the apache and apache-ssl root directory are the same and both have suport for php4, I can open the moodle site with http and https).

Then, I went to admin page -> variables and loginhttps var apears desabled - how can I enable it ?

(I've alredy add in config.php the line $CFG->loginhttps = true; but no https login ... )

Thanks for any sugestions!

Average of ratings: -
In reply to Ana Graça Filipe

Re: loginhttps Desabled

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
If you are sure that the https site is working correctly then the detection of it must not be working.

In that case you can do this: turn Javascript off in your browser before viewing the configuration page.  You can then change the loginhttps option and save the configuration before turning Javascript on again.
Average of ratings: Useful (1)
In reply to Martin Dougiamas

Re: loginhttps Desabled

by Johanna Bressler -
thanks a lot - me too, I had the same problem. and it was easy to fix it with your description!

seasons greetings - till my next moodle problem wink
ingrid
In reply to Johanna Bressler

Re: loginhttps Desabled

by Johanna Bressler -
WARNING

DON'T USE THIS BEFORE YOU MAKE SURE THAT YOUR HTTPS URI IS THE SAME THAN YOUR HTTP URI !!!

Because otherwise the moddle script doesn't recognize the https-server and you will get locked out. just as I was .....

greetings, ingrid
In reply to Johanna Bressler

Re: loginhttps Desabled

by garima agrawal -

Hi Ma'am

Can you please help me to solve this problem.

I enebled the https login serviice in moodle without turning on in phpmyadmin.

Please tell me now what to do and how can I unlocked it again so that I can access moodle. Please.......help me.

In reply to garima agrawal

Re: loginhttps Desabled

by Iñaki Arenaza -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Connect to your Moodle database and execute the following SQL query:

UPDATE mdl_config SET value='' WHERE name='loginhttps';

That should do it.

Saludos. Iñaki.

In reply to Ana Graça Filipe

Re: loginhttps Desabled

by T Y -
I encountered the same problem and realized that I had to make sure the Variables configuration page itself was a secure page before it would allow me to change the dropdown. I achieved this easily enough by retyping my URL for the Variables page with https prefix. So there was no need to disable JavaScript first.

My question though is how to make Moodle stay on https -- even though I access my site or pages within my site with https as the URL prefix, invariably it returns to http as I use it. Is there a place to set it up so that I use my Moodle entirely in https? Also if my https port is not the standard 443 but something else, how do I make it stay https on whatever this non-443 port is?

Thanks!
In reply to T Y

Re: loginhttps Desabled

by Johanna Bressler -
Hi T Y,

could you propably help me? Where is the right place to put the präfix for the https-URI?

In the configvars.php I only found this part:

[code]
/// loginhttps
$security['loginhttps'] = new configvar (get_string('configloginhttps', 'admin'),
choose_from_menu ($noyesoptions, 'loginhttps', $config->loginhttps, '', '', '', true) );
[/code]

Would be very helpful if you could tell me!
thx
ingrid
In reply to T Y

Re: loginhttps Desabled

by Zachary Baiel -
I tried modifying the source code where it stated SSL and port 443 to port 444 (which is what we are using) to no avail. Anyone else have any ideas? I find this hard to believe that something cannot be done to make this a reality.