Login problem

Re: Login problem

by Visvanath Ratnaweera -
Number of replies: 1
Picture of Particularly helpful Moodlers Picture of Translators
Hi

> 'df - h' shows the attached screenshot dfh.jpg.

45 GB available in the partition. That is huge progress.

> No error messages were shown after editing config.php. We added the code from https://docs.moodle.org/en/Debugging

Not good. The four lines following '// Force a debugging mode regardless the settings in the site administration' are known to display debug traces on the screen. Check the logs of web server to be double sure.

> We entered the Moodle database on the server and ran some SQLs to allow Guest Access to his course, make visible all sections, and make visible all modules.

Well, if the patient has been in the OP then the surgeons should take over. This is casual advice from an old general practitioner.
wink

> If we change $CFG->wwwroot = 'http://___.___.cn/moodle'; to $CFG->wwwroot = 'https://___.___.cn/moodle'; or $CFG->wwwroot = 'https://___.___.cn'; we get a 503 error (website down). So we changed it back to http.

The URL of the site is not something for trial-and-error. The administrator of the site must have given the hosting provider a contract, take the one in the contract. From what I see in the Nginx conf file, it is HTTP (port 80). So stick to it.

> We then looked at /etc/nginx/conf.d/moodle.conf and the administrator suggested ipv6only=on could be a problem. He did not edit the file. See screenshot moodle_conf_and_login_index.png
We then looked at /opt/public/moodle/login/index.php and the administrator suggested $CFG->httpswwwroot/login/index.php could be a problem. He did not edit the file. See screenshot moodle_conf_and_login_index.png

Highly adventurous. I am excited to hear his story. The well-trodden (boring) path I take is named https://docs.moodle.org/en/Nginx.

Oh, wait, Moodle 2.9! Ha, ha, did you check the https://docs.moodle.org/dev/Moodle_2.9_release_notes#Server_requirements ?

> Another thing I noticed is when I use the web VPN, and try to log in, no Moodle cookies are set.
When I use the EasyConnect desktop VPN and log in, I get one cookie, under Cookies:

That I don't know. The network comes before the application. I don't know how to reverse engineer the network layers by looking at how Moodle behaves. This sounds like an aggressive Chinese medicine - not the TCM. My Ayurveda is no match. I retire.
smile
Average of ratings: Useful (1)
In reply to Visvanath Ratnaweera

Re: Login problem

by Ax Iomicon -
Hi Visvanath Ratnaweera and Leon

Our Moodle is now fixed.

I don't fully understand why.  I was told that the administrators in China changed in config.php:

$CFG->wwwroot = 'http://______.___.cn/moodle';

to:

$CFG->wwwroot = 'http://[ip_address]/moodle';

Also, in /etc/nginx/conf.d/moodle.conf, they changed:

server_name ______.___.cn;

to:

server_name [ip_address];

The administrator stated there is a problem with domain name redirecting which is caused by the web-based VPN service.

I am happy that it is solved.  Thank you to Visvanath Ratnaweera and Leon who offered excellent advice that somehow put the administrators on the path to find a solution.  I appreciate all contributors to this community.