How to get my Moodle public key?

You can get the Moodle public key from the admin area > Networking > Settings > Networking > On.

If the public key does not appear, you will have to delete the mnet_localhost_id value in the mdl_config table of your Moodle database so that the mnet environment is forced to renew the environment parameters.

You can do this using the phpMyAdmin tool available in your cPanel. Once in phpMyAdmin, select your Moodle database and browse the table mdl_config. Find the option mnet_localhost_id and delete its value.

Then you can go to your Moodle admin area and check your public key. Please note that once the new public key is activated, the mnet_localhost_id value will be changed. Once this is done, you won't be able to log in to Moodle. To resolve this issue,  you should change the mnethostid value for each user in the mdl_user table to match the new value of mnet_localhost_id.

You need help with an application? hostlantern is specialized in hosting and supporting more than 200 scripts. Sign up for our web hosting services and let us help you with your application, 24/7!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to configure Moodle to work with a new domain?

In order to configure Moodle to work properly with another domain, you should modify the...

How to upload/restore larger courses in Moodle?

Sometimes it may not be possible to upload/restore a larger course in your Moodle directly...

How can I see the exact version of my Moodle?

The version of your Moodle can be seen from the Moodle admin area > Server > Environment....

How to change Moodle’s database to UTF8?

When you upgrade to the latest Moodle version you may get a warning about incorrect MySql...

Additional Moodle resources – modules, themes, etc.

The official Moodle website.   The official Moodle documentation.   The official...

Copyright © 2013<script>new Date().getFullYear()>2010&&document.write("-"+new Date().getFullYear());</script>, HostLantern. All Rights Reserved.