1. Where can I switch off https-login?
2. Why it doesn't work? Do I have to reinstall moodle, first install ssl and then moodle. Will this work?
Thanks for help.
This forum post has been removed
UPDATE mdl_config SET value = 0 WHERE name = 'loginhttps'
you may need to alter mdl_ if you used a different prefix.
UPDATE mdl_config SET value = 0 WHERE name = 'loginhttps';
so it's the same but one must to add ";" character at the end of the command.
This is maybe an issue on the MySQL too.
Hi Anthony,
I had swithed loginhttps before turning on HTTPS on web server.
Now when I am trying to fix this by doing:
1. turn off httpslogin in db.
2. turn off SSL on apache.
3. login with http as admin and check httpslogin : menu: security>HTTP Secruity>httpslogin unchecked.
4. remain logged as admin in one browser.
5. open another browser and login as normal test user. am logged in. (no ssl, no httpslogin)
6. turn on httpslogin from admin.
7. turn on SSL on apache. re-start apache.
8 try to login as test user again. fails.
Am i doing something wrong?
Please help.
I'm not sure you are doing something wrong but I would go back and do step 1 and make sure Moodle is not requiring you and your users to use https for login. Then you can manually test any page by changing http to https in your browser to ensure that the apache server is working with ssl. Once you do that, then you should be able to enable httpslogin without issue. I also get suspicious of browser cache's but lets make sure that the ssl option is working properly before requiring it. Let me know if you have any other questions. Peace - Anthony
That Worked !.
Thanks Anthony.
So my vhost config file looks like :
Fixed that too. some syntax error.
Works fine now.!!
I'm not an apache expert, but as I recall I did not use mod_rewrite but instead ssl and port 443. You should be able to find some documentation pretty easily about enabling ssl on apache servers. Peace - Anthony
Actually I do not really know XAMPP as I've always just installed Apache, PHP, and MySQL independently. It is worth the learning curve IMHO. In any case, I did a quick Google of how to enable SSL on XAMPP and the following link may be of help http://www.debianhelp.co.uk/xampp.htm - I was not aware of the startssl option. Peace - Anthony