Running Moodle in an air-gapped network: what it means and when teams need it
An air-gapped network is one with no route to the internet, so the learning platform cannot fetch updates, plugins, language packs or external services on its own. Teams usually reach this requirement because the learning platform sits in a restricted environment, such as a secured enclave, a lab network or a site whose policy forbids outbound connections from systems that hold student or staff records. Moodle is a good fit for this model because it is self-hosted and licensed under GPL-3.0, so the code, the database and the course content all live in infrastructure you control. The catch is that Moodle's core assumes some outbound access. Its update checks, web-based plugin installs, language pack downloads, external video and AI services and mobile app behavior all reach out by default, and each of those needs an explicit decision before go-live.
Before you plan anything, confirm the constraint in writing with your security and compliance owners. Ask whether the restriction is a full air gap, a one-way transfer through an approved gateway, or an allowlist that permits a few hosts. Each answer produces a different build. A full air gap means every Moodle release, plugin, language pack and patch arrives by media or a controlled transfer, and you need a process to verify what crosses the boundary. An allowlist may keep some outbound paths open but still require you to switch off the features that depend on unlisted hosts. Ask your compliance team which obligations apply to the learning data itself, since that shapes where backups, logs and the moodledata directory may live. This page covers the settings, offline delivery and feature choices that follow from the answer, so the decision should be made before any server is built.
Which Moodle settings to change for an offline site
This table compares the two config-dist.php settings that control update behavior on a Moodle site without internet access, and what each one stops. Read each row as a decision: the first setting removes update prompts, the second blocks web-based plugin installs, and both shift patching and plugin delivery onto your own process.
| Setting | What it stops | When it fits | Trade-off |
|---|---|---|---|
| disableupdatenotifications | Hides the update notifications that Moodle shows to administrators when new releases or plugin versions are available | Any offline site, since the check cannot reach moodle.org and only generates noise and failed requests | Administrators no longer see a prompt to patch, so they must track security releases through their own schedule and channel |
| disableupdateautodeploy | Blocks installing and updating plugins through the web interface, so code changes must come from the server file system | Offline and controlled environments where code changes should go through change control and approved packages | Every plugin or patch becomes a manual file deployment, tested in staging and recorded, which adds effort to each release |
| Both settings together | Removes online update checks and web-based code changes | Sites with strict change control that deliver all code from a vetted offline repository | All patching, language packs and plugin delivery depend on your team, so the process needs a named owner and a release calendar |
| Neither setting | Nothing; update checks and web installs remain available | Only where the site can reach the internet through an approved path | Unreachable checks produce errors, and web installs can bypass change control, so this is rarely right for an isolated network |
How plugins, language packs and updates get across the boundary
Core Moodle code and point releases are the largest and most sensitive items to carry across. The platform team downloads the release package on a connected build host, records its checksums, and moves it through the transfer process your security team approves. Moodle publishes major releases in April and October and minor point releases every two months, so the schedule for carrying these across must be planned ahead of time. Install the code and run the upgrade on a staging copy before it touches production.
- Build host preparation: Download the package from the official source on a controlled machine, not on the isolated network.
- Integrity record: Keep the published checksums and compare them after transfer, and note who performed each step.
- Version pairing: Confirm the PHP and database minimums for the target release before you move any code.
- Staged install: Apply the code and upgrade on a non-production copy of the database and moodledata first.
- Production change: Apply the verified package in your normal change window, with a tested backup taken beforehand.
Confirm the exact procedure for your version in the release notes and with your change advisory board before the first transfer.
Third-party plugins are the item most likely to add unreviewed code to the isolated network. Plugins are not all maintained to the same standard, and a plugin that works on a connected site can still depend on remote calls or bundled libraries. The application owner or a developer usually selects the plugin, the security team reviews its source and dependencies, and the platform team installs it through the file path rather than the web interface. Vetting is a recurring cost each time a plugin is updated.
- Selection: Record the plugin name, version, maintainer and the Moodle versions it lists support for.
- Source review: Read the code for outbound network calls, bundled JavaScript or PHP libraries and file system writes.
- Dependency check: Identify any external services, fonts, scripts or images the plugin loads at runtime.
- Controlled install: Place the reviewed package on the server through the approved path and disable web-based installation.
- Re-review on update: Repeat the review whenever the plugin changes, because each new version can add new calls.
Confirm the plugin's compatibility with your exact Moodle version and whether its maintainer supports offline use before you approve it.
Language packs are usually low risk in code terms, but they still need a controlled path, because Moodle normally fetches them from the internet when a site asks for a new language. Without internet access, the language pack for each needed language must be downloaded on a connected machine and placed on the server. The application owner decides which languages are required, and the platform team stages the packs with the core release they match, so text and code stay in step.
- Language list: Agree the languages learners and staff need before the transfer cycle begins.
- Matching version: Download packs built for the same Moodle version as the core code you are running.
- Checksum and inventory: Record each pack and its checksum in the transfer log.
- Install location: Place packs in the language data directory on the server, then clear caches so they load.
- Translation changes: Treat local string overrides as configuration that must be carried with each upgrade.
Confirm with your Moodle version whether the language pack install path and cache step match your deployment.
The Moodle app is a client on learners' and staff devices, not a package installed on the server, so it crosses the boundary differently. Mobile builds come from the app publishers through their own distribution channels, and devices on an isolated network may not reach those stores at all. The IT team decides whether to distribute a signed build through managed device tooling, and the application owner confirms which app features work when the server has no internet connection. Moodle's app tools include offline use settings, so the site configuration determines what learners can do without a connection.
- Distribution route: Decide whether devices receive the app through an internal mobile management tool or another approved channel.
- Build matching: Confirm the app version is compatible with the server version you run.
- Offline settings: Review the offline use settings in the app tools configuration and document which features stay available.
- Device policy: Record which devices are approved and how updates are pushed to them.
- Feature testing: Test sign-in and offline behavior on a representative device before rollout.
Confirm the exact distribution method and offline behavior for your app build and mobile management platform.
Setup sequence for an offline Moodle site
This sequence takes a Moodle site from version selection to a running instance that makes no outbound calls. Each step closes with a check the team can record, so the offline build can be reviewed by security and compliance staff.
Confirm the target release and its runtime versions
The platform engineering lead selects the Moodle release and checks its minimum PHP, database and upgrade-path requirements against the release notes before any software is staged. For Moodle 5.1, the release notes require 64-bit PHP 8.2 or later (8.3 and 8.4 are supported), PostgreSQL 15, MySQL 8.4, MariaDB 10.11 or SQL Server 2017 or later, and an existing site on Moodle 4.2.3 or later. For Moodle 5.3, PHP 8.3 or later, PostgreSQL 17, MySQL 8.4, MariaDB 11.4 or SQL Server 2019 or later are required, and the site must be on 4.4 or later. Done when a signed-off version matrix lists the OS, PHP, database and Moodle versions, and each one has been confirmed against the current release notes for that version.
Build the offline staging bundle
The platform team assembles every artifact the isolated site will need in a staging area on the connected side: the Moodle source package, the PHP and operating system packages, database server packages, approved plugins, and the language packs the site will use. Each package is checked for integrity and authenticity against the publisher's published checksums, and the bundle is recorded in an inventory with versions and hashes. This is the control point for software carried across the boundary, consistent with the verification of vendor software described in NERC CIP-013-2, which is a useful reference if your sector applies it. Done when the inventory matches the bundle contents and a second person has reviewed the hash record.
Transfer and install the bundle inside the boundary
The bundle is moved across the boundary through your approved media or transfer process, then installed on hosts that have no route to the internet. The operator installs the operating system, PHP extensions, the database and the web server from the local repository or package files, and places the Moodle code and plugins in their target directories. The site is set up with the dataroot kept outside the web root. Done when every host installs from local sources only and the transfer record links back to the inventory from the previous step.
Set the update and autodeploy options
Before the first web login, the administrator adds the offline-relevant settings to config.php, based on the reference file config-dist.php. The settings disableupdatenotifications and disableupdateautodeploy turn off update checks and installation of plugins through the web interface, so changes happen only through the controlled bundle process. Confirm the exact key names and behavior for the chosen release in the shipped config-dist.php, since they are the only settings this step should rely on. Done when config.php contains the settings, a test login shows no update notices, and the plugin installation page no longer offers web installs.
Point the web server at the /public document root
For Moodle 5.1 and later, the web server document root must point to the new public directory inside the Moodle code, not the main Moodle folder. Configure the virtual host to serve public as the root, keep the code and dataroot outside the served path, and confirm that PHP-FPM or the module runs under the intended service account. If the root is set to the main folder, the site may show directory listings or errors. Done when a request to the site root returns the Moodle login page, and a request to a path inside the code directory outside public returns a not-found response.
Run the installer and cron with local resources only
The administrator runs the Moodle installer, creates the database and admin account, and schedules cron as a system job. Any setting that fetches remote content, such as external services or hosted media, is left disabled or pointed at internal endpoints. The team confirms that cron runs to completion and that the site does not depend on a hosted service to start. Done when the installer completes, the cron log shows successful runs, and the admin account can sign in with no errors about unreachable hosts.
Verify the site makes no outbound calls
The security team tests the running site from the network side. They capture traffic from the Moodle host and the web and database servers during a set of routine actions: sign-in, course creation, a file upload, a backup, a cron run and a plugin status check. They also attempt outbound connections from each host and confirm they fail at the boundary. Any destination found in the capture is traced to its setting or plugin and either disabled or documented as an internal dependency. Done when the capture shows only internal destinations and the findings are recorded in a signed test report that the platform owner keeps with the build record.
How packages and checks move across the isolated boundary
The flow starts in an internet-connected staging zone, where Moodle core, plugins, language packs and the offline files are downloaded and recorded with checksums. Each item then passes an inspection and scanning step outside the boundary, is written to approved transfer media, and is imported on the air-gapped side. Inside, an internal antivirus scan and an administrator review run before anything reaches the Moodle code directory, database or moodledata. Confirm the review criteria and media handling with your security team before the first transfer.
Packages and checks crossing from staging into the isolated Moodle environment.
Moodle features that depend on outside services
Several Moodle features look like local code but call external services at runtime, or fetch files the first time they are used. On a network with no internet route, each one either fails quietly, shows errors to learners, or stalls a page load. Review each dependency on your exact Moodle version before you declare the site ready.
AI providers and external API calls
Moodle's AI subsystem sends prompts to a configured provider, and a provider plugin is only as local as its endpoint. Hosted providers such as Anthropic's Claude, which ships as a provider plugin in Moodle 5.3, need outbound HTTPS to that vendor. Confirm which providers are enabled, disable any cloud provider, and point any approved provider at a model server inside your network. Check policy acceptance and placements so no user-facing feature calls an external API by default.
Moodle 5.3 notesVideo and conferencing integrations
Embedded meeting tools, video libraries and hosted conferencing plugins load scripts, fonts or media from third-party domains. On an isolated network, the page may render with broken widgets, long timeouts, or blank activity areas. Inventory every block, filter and activity that embeds an external player or meeting room, and decide whether to replace it with a self-hosted conferencing service or remove it. Test a course page with browser developer tools open to see which domains are requested.
External authentication services
Some sign-in methods depend on a service outside your network, such as an OAuth 2 provider, a SAML identity provider, or a hosted directory. Core authentication plugins can point at internal systems, but the identity provider and its metadata or certificate endpoints must also sit inside the boundary. Confirm the identity provider is self-hosted or reachable, check that metadata refresh and token endpoints resolve internally, and keep a local administrator login that does not rely on any external service.
SAML2 plugin listingRemote content and web-based plugin installs
Moodle can check for available updates and install plugins through the web interface, and both actions reach remote servers. Set disableupdatenotifications and disableupdateautodeploy in config.php so the site stops checking for updates and blocks web installs. Then review any activity or filter that fetches remote media, such as external H5P packages or RSS feeds, because these load content from URLs that a learner may paste into a course.
config-dist.phpMobile app services and offline mode
The Moodle app contacts the site it is configured to use, and some mobile features depend on services that a site must expose or enable deliberately. Offline use settings in the app's tool_mobile configuration control what content learners can download and sync. Confirm the app's server address resolves inside your network, test sign-in from a managed device, and confirm which offline features your version supports before telling learners what works without a connection.
Mobile tool stringsLocal antivirus and offline quiz attempts in a restricted network
Every file a user uploads to Moodle, from assignment submissions to forum attachments and course resources, needs to be scanned by a local scanning engine that never reaches the internet to fetch signatures. Moodle can call an antivirus engine on the server once the site has an antivirus plugin and engine path configured, so the engine, its binary and its signature database all have to be installed inside the restricted network. The part teams most often miss is the signature update. A scanner with stale definitions gives false assurance, so the update bundle must be produced on a connected system, checked for integrity, carried across the boundary through your approved transfer process and applied on a schedule you can evidence. Confirm with your antivirus vendor how offline signature updates are packaged, how often they are published and how you verify them before import. Also confirm which Moodle antivirus plugin your version supports, because the admin settings and scanning hooks differ between plugins.
Offline quiz attempts are a separate decision. Moodle core ships quiz access rules, and the offline attempts rule is one of them, which lets a learner start and answer a quiz while disconnected and sync the attempt later. The Moodle app also exposes offline use settings through its tool_mobile configuration, so the sync path depends on both the server rule and the app build your learners install. Before enabling either, decide who is allowed to attempt quizzes offline, on which devices, and for how long answers can sit unsynced. Weigh those choices against the risks: a device that is lost or shared can hold exam content and answers, timers can be gamed, and sync conflicts can be hard to explain to a learner or assessor. For high-stakes assessment, many teams keep attempts online only. Ask your Moodle administrator to test the rule on a staging site with a realistic quiz and a device with no connectivity, and record what is stored locally and what happens when the attempt syncs.
Security and operational considerations for an isolated Moodle
An isolated Moodle has no vendor feed to lean on, so every control that a connected site gets for free has to be run by your team. The cards below cover the controls that matter most: what you import, what you change, how you recover, who can administer, what you log and how you keep pace with releases.
Verify every package before import
Every Moodle core patch, plugin, language pack and container image carried across the boundary should be checked before it reaches the isolated network. Record the checksum and the source release at the point of download, and compare it again on arrival. Keep the transfer media and the import log together so that an auditor can trace any file back to its origin. Confirm with your security team which hash algorithm and signing method they require, since that decision is theirs and not something the platform sets for you.
Change control for plugins
Plugins are the largest source of drift on an isolated Moodle, because each one adds code that runs with the privileges of the web server. Keep a written register of every installed plugin with its version, source, approver and install date. Use disableupdateautodeploy so that no one installs a plugin from the web interface, and route every change through a staged copy before production. Ask your team who can approve a plugin, and how a rejected plugin is removed from the database and file system.
Backup and restore without external storage
A Moodle site needs three things restored together: the database, the moodledata directory and the code tree at the matching version. On an isolated network, backups must stay inside the boundary, so plan local or dedicated backup storage with its own access controls and encryption. Test a full restore on a separate host at least once per release cycle, because an untested backup is not a recovery plan. Confirm with your storage team how long backups are retained and who may read them.
Admin access and session controls
Administrator accounts on Moodle can change code paths, install plugins and read all user data, so they need the tightest controls in the site. Limit site administrator accounts to named people, require strong local authentication or a federated sign-in where your environment supports it, and set session timeouts that match your policy. Review role assignments on a fixed schedule and remove accounts for staff who have left. Confirm with your identity team which sign-in method works without the internet.
Logging that stays local
Moodle writes logs to its own database and to the web server, cron and system logs, and none of these leave the network unless you send them. Decide which events must be retained, such as logins, role changes, plugin installs and configuration edits, and forward them to a log collector inside the boundary. Check that log retention settings meet your records policy, and that log access is restricted to the people who review them. Ask your security team where the logs are reviewed and who is alerted when they show an unexpected change.
Patch cadence tied to release schedule
Moodle ships major releases in April and October and point releases every two months in February, April, June, August, October and December. An isolated site cannot pull patches automatically, so set a fixed review window after each point release and decide in advance which security fixes are applied within it. Plan major upgrades against the support dates published for each release, and confirm the upgrade path with the release notes before you start a copy of the site. Ask your change board how many weeks you need to stage and test a patch before production.
Moodle releasesQuestions teams ask before running Moodle offline
Can our own team run Moodle on an air-gapped network without a partner?
Yes, many teams with Linux, PHP and database experience can, but the work is more than installing software. Your team needs to build an offline copy of the Moodle code, plugins, language packs and dependencies, then install and configure everything with no route to the internet. The main questions are whether you have staff who can own patching, backups and upgrades on a closed network, and whether someone has time to document every step for auditors. If those skills or hours are missing, a fixed-scope engagement can cover the parts you do not want to staff in-house. Confirm your internal capacity before deciding.
What drives the effort and cost of an offline Moodle deployment?
The main drivers are the number of plugins, the number of PHP and database dependencies you must carry across the boundary, how many integrations need to work offline (identity, HR feeds, file storage, email relay), and how strict your compliance evidence must be. Custom themes and plugins add testing and packaging work. Hosting topology matters too: a single server is simpler than a load-balanced cluster with shared storage. Costs are one-time for design, build and cutover, and recurring for upgrades, offline package transfers and security review. Ask any provider for a quote that lists each of these items separately.
How long does an offline Moodle setup usually take?
Duration depends on scope, not on a fixed template, so no general timeline applies. The factors that lengthen it are the number of plugins to vet, integrations that must be tested without internet access, the change control and approval steps in your environment, and how many environments (test, staging, production) must be built from the same offline bundle. Requirements gathering and access approvals often take as long as the technical build. Ask for a schedule with milestones tied to the written scope, and confirm which of your internal approvals sit on the critical path.
What do we need to provide before the work starts?
The work needs access and information that only you can supply. Expect to provide the target infrastructure, approved operating system and database versions, a list of required plugins and themes, the identity and directory systems Moodle must connect to, and the email, storage and backup targets. You will also need a transfer process for the offline bundle that your security team accepts, and named owners for approvals, change windows and testing sign-off. Confirm the Moodle version you plan to run first, because minimum PHP and database versions differ by release.
How do we handle Moodle updates on a closed network?
Updates on a closed network are a planned transfer, not an automatic download. Moodle's configuration can disable update notifications and plugin installation through the web interface using the disableupdatenotifications and disableupdateautodeploy settings in config.php, so the site does not try to reach external servers. You then build each update, including core releases, point releases and plugin versions, on a connected staging system, verify checksums, and carry the package across your boundary under your transfer process. Moodle ships major releases in April and October and point releases every two months, so plan a recurring cycle. Security patches need a faster path than feature upgrades.
Does Moodle need a paid edition to run offline?
No supplied fact indicates that Moodle requires a paid edition for offline use. Moodle's code is licensed under GPL-3.0 and can be self-hosted, which is the basis for running it in your own infrastructure. Some other open-source tools tie air-gapped deployment to commercial editions, so do not assume the same rule applies everywhere. Confirm with Moodle HQ or your Moodle Partner that no paid service or feature is required for the modules, plugins and AI or video features you plan to use, and check each third-party plugin's license before carrying it across the boundary.
How do we get a quote for offline Moodle work?
Start with a written scope that lists the Moodle version, hosting targets, plugins and themes, integrations, offline update process, backup and recovery expectations and compliance evidence needed. DeployOpen plans, implements, hardens, backs up, upgrades and documents self-hosted platforms inside your own cloud accounts, data centers or air-gapped networks, and most engagements are fixed-scope with deliverables and timelines agreed in writing before work starts. DeployOpen does not publish a price list, so a quote follows from that written scope. Ask for the quote to separate one-time build work from recurring support or retainer items.
How DeployOpen scopes and delivers offline Moodle work
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, including air-gapped networks. For Moodle, that means the work runs in your data center, your cloud account or your isolated enclave, with your identity, storage and backup systems. DeployOpen is a Chainscore Labs company. Offline Moodle work touches the web server, the database, the dataroot, the update and plugin settings, the package transfer process and the operating procedures that keep a disconnected site patched, so the scope needs to cover all of them rather than the application alone.
Engagements are fixed-scope. Before work starts, the written scope sets out which Moodle version and release line is in use, which components are in the boundary, which settings are locked (for example, update notifications and web-based plugin installation), how language packs and plugins enter the network, which features are excluded such as AI providers and external video services, and what the deliverables and timelines are. A quote follows from that written scope, so the questions to answer first are the Moodle version you intend to run, the database engine and its supported minimum for that release, whether you need the Moodle app's offline mode, and who on your side approves each transfer into the network.
DeployOpen does not issue audit reports, attestations or certifications. It can prepare configuration evidence, a transfer and patch record, and documentation that your compliance team and independent assessors can review, but the assessment itself belongs to those assessors or certification bodies. Ask in the proposal which deliverables are documents, which are configuration exports or test results, and what handover covers after the engagement ends, so your team can run the offline procedure without outside help.

