Home / Open source / MGV Learn

Open source · Learning management (LMS)

MGV Learn

Open-source, self-hosted LMS to create, manage and sell online courses.

  • LicenceMPL-2.0
  • Latest releasev1.1.0 · 3 December 2026
  • Built withPHP 8.2 · CodeIgniter 4

What it is

MGV Learn is a free, self-hosted learning platform. You run it on your own website, publish courses, and let students preview lessons, enroll, and continue where they left off.

Who it's for

  • Creators
  • Educators
  • Coaching institutes
  • Organizations

Features

What you can do with MGV Learn

  • Publish a public site with a homepage, course catalog, about page, contact page, testimonials, and a blog.
  • Build courses from sections and lessons. A lesson can be text, video, or a PDF, and any lesson can be a free preview.
  • Let students create an account, enroll, mark lessons complete, and resume the last lesson.
  • Sell courses with Razorpay, or send students to an external payment link. Free courses can be joined without payment.
  • Enroll a student by hand, and suspend or revoke access.
  • Manage orders, payments, contact enquiries, navigation, email, and site branding from the admin panel.
  • See when a newer release is available. The notice stays until that version is installed.

Tech stack

Built with

  • PHP 8.2
  • CodeIgniter 4
  • MySQL 8 or MariaDB
  • Apache
  • PHPUnit

Requirements

What you need

  • PHP 8.2.0 or newer
  • MySQL 8 or MariaDB, with an empty database created before setup
  • Apache with mod_rewrite enabled
  • PHP extensions: intl, mbstring, mysqli, json, curl, openssl, gd, fileinfo
  • Write permission for the site folder and for writable/ and its cache, logs, session and uploads folders

Quick install

Install MGV Learn

  1. Download the release and upload it to your server.
  2. Create an empty MySQL database and a database user that can access it.
  3. Point the site at MGV Learn. The preferred layout sets the domain's document root to the public folder.
  4. Open the site in a browser. The setup screen appears when .env does not exist yet.
  5. Enter the database details, the public site URL (including https://), and the administrator name, email, and password. The password needs at least 8 characters, with a letter and a number.
  6. Submit the form. Setup creates the tables, writes .env, and marks the installation as complete.

Use the full public URL during setup, with a trailing slash, for example https://courses.example.com/. Admins sign in at /admin/login and students at /login. Delete the demo student before you invite real learners.

Run it on your own computer

composer install
cp env .env
php spark key:generate
php spark migrate --all
php spark db:seed DatabaseSeeder
php spark serve

Full install guide on GitHub Releases and downloads

FAQ

Common questions

Is MGV Learn free to use?

Yes. The README describes it as a free, self-hosted learning platform, and it is released under the Mozilla Public License 2.0.

Can I install it on shared hosting?

The README covers this. If the host can only use the account root, upload the whole project there; the included .htaccess serves the public site and blocks direct access to private files. The host must allow .htaccess overrides.

How do students pay for courses?

Through Razorpay, or an external payment link, or both. Free courses can be joined without payment.

How do I update an installed site?

Back up the files and the database, copy the new release over the current installation, keep your existing .env file and writable/uploads/, apply any database steps in the release notes, then check the Updates page in the admin panel.

Answers are based on the project's README. Last checked 3 December 2026.

Need help setting up MGV Learn? Contact us.

Reach us by email or WhatsApp.