Forums | Mahara Community

Mahara/Moodle integration /
moodle can't retrieve mahara's public key


anonymous profile picture
Account deleted
Posts: 3

03 October 2011, 7:34

I have Moodle 1.9 and mahara 1.3 both installed on the same server in different directories inside the web root of the apache www directory. I followed the steps in the Mahoodle install document and the result is that although mahara retrieves moodle's public key, when i try to add mahara to moodle's peers i get the following error

"There was a problem retrieving the public key.
Maybe the host does not allow Moodle Networking or the key is invalid."

i would appreciate any immediate help!

Many thanks in advance.

anonymous profile picture
Account deleted
Posts: 1

24 January 2012, 9:07

Hi toungi, have you try this?

If you let Mahara auto-detect the wwwroot:

  • Run the following SQL queries on the database. Remember to take a full dump of your database in case anything goes wrong!
    • delete from config where field = 'wwwroot';
    • delete from config where field like '%openssl%';
  • Log in as an administrator and go to "Site Administration -> Configure Site -> Networking" to re-generate the public key.

If you have set wwwroot in config.php manually:

  • Update $cfg->wwwroot in config.php to the new address.
  • Run the following SQL queries on the Mahara database.  Remember to take a full dump of your database in case anything goes wrong!
    • delete from config where field = 'wwwroot';
    • delete from config where field like '%openssl%';
  • Log in as an administrator and go to "Site Administration -> Configure Site -> Networking" to re-generate the public key.

The 'config' table name in the above SQL statements may vary if you have a dbprefix set.

Note that any networked peers such as Moodle would also need to have their configuration updated to contain the new Mahara hostname and public key.

2 results