WordPress Moodle integration

A.K.A. WordPress and moodle SSO (Single Sign On).

There are these two very good open source content management and e-learning products:



I find this a very interesting argument, for this reason i started writing a guide about how to make users authenticate on both systems with a single sign on.

My post is about getting things running smoothly after wordpress updates.

That could be tricky because any updat on wordpress side or on moodle side will overwrite all modification made in order to make the SSO working.

You can take a look at my post about Moodle and WordPress integration.

Let me know if this works for you and what can goes wrong so I can update information there.


(Visited 6,705 times, 1 visits today)

Author: Giuseppe Urso

Giuseppe lives in Haarlem now with his shiny dog, Filippa In 1982 received his first home computer, a Commodore 64, followed by Datasette and a 1541 Floppy Disk Drive. In 1999 he installed his first Linux distro (LRH6). In 2006 he switched to Debian as favourite OS. Giuseppe Urso actively sustains the Free Software Fundation and his founder Richard Mattew Stallman, he speaks to people trying to convince them to join the fight now, and about how important is to use Free Software only. He has a job as Infra Specialist at Hippo Enterprise Java Cms an Open Source Enterprise class Content Management System, one of the coolest company ever, in Amsterdam. He's always ready to install Debian on other people computers for free.

5 thoughts on “WordPress Moodle integration”

  1. Hi there,
    fine guide, I appriciate much! Unfortunately, as soon as I add
    this require you mentioned: require_once($CFG->libdir.”/class-phpass.php”);
    to my wp-login.php I couldn´t log my wordpress-admin account out. Just showed a white page, no errors. As I tried logging on again, same thing.
    I have no idea. Can you help me?

    1. Hm not sure, but i guess you copy/pasted the line and the double quotes are not the right ones.
      Try to delete them and just re-type them using the keyboard. If nothing changes, have a look to your web server error log.
      Let me know

    2. Add require_once($CFG->libdir.”/class-phpass.php”); to moodle/auth/db/auth.php not to wordpress wp-login.php

      for me that fixed problem

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.