Upgrading from Moodle 4.x or 5.0? The biggest hosting change is Moodle’s new /public/ folder structure, introduced in Moodle 5.1. Moodle 5.3 also includes a Router and supports Composer for managing PHP libraries. This guide explains what you need to know without getting lost in server configuration.
Planning a Moodle upgrade? Whether you manage a university learning portal, a training website, or a company LMS, it’s worth checking your hosting setup before updating. Here’s a straightforward overview of the main steps and where to find Moodle’s official technical instructions.
What’s Changed in Moodle 5.3?
- A new
/public/folder: From Moodle 5.1 onward, your web server should serve the/public/directory instead of the main Moodle folder. This helps protect private files from direct web access. - Moodle Router: Handles newer Moodle URLs and API requests. A basic Moodle 5.3 site may still work without a fully configured Router, but some routed features won’t work correctly. Moodle plans to require it in a future release.
- Composer: Installs and manages PHP libraries Moodle uses. It’s optional for most Moodle 5.3 sites, but needed for some features, including OAuth 2 Server. Moodle says Composer will be required from Moodle 6.0. See the Moodle Composer documentation for instructions on running Composer in your Moodle installation.
For the exact PHP, database, and other server requirements, check the Moodle 5.3 release notes.
Step 1. Prepare Before Upgrading
- Back up your site. Save the Moodle database, code,
moodledatadirectory, andconfig.php. - Check your server. Make sure your PHP and database versions meet the requirements for the Moodle release you’re installing.
- Check your theme and plugins. Confirm that compatible versions are available. Consider switching to Moodle’s Boost theme during the upgrade if your current theme isn’t compatible. See our theme upgrade guide.
- Test on a staging site first. This is especially important if your Moodle site has custom plugins or integrations.
Step 2. Update Your Moodle Files and Public Folder
If you’re upgrading from Moodle 4.x or 5.0, you’ll need to adapt to the folder structure introduced in Moodle 5.1. The web server must point to Moodle’s /public/ directory.
Moodle has folders such as admin/ and lib/ both inside and outside /public/. They serve different purposes. For example, the command-line administration scripts remain in the root-level admin/cli/ directory. Your main config.php also stays outside the public web root.
If your site is already running Moodle 5.1 or 5.2, you should already have the new folder structure in place, so there’s no need to change it again when upgrading to Moodle 5.3.
Step 3. Check the Moodle Router
Think of the Router as a traffic controller. It sends certain web requests to the right part of Moodle, including newer URLs and API endpoints. Existing URLs such as /course/view.php?id=4 can still work as before.
In Moodle 5.3, a site may appear to work without the Router being fully configured. However, newer routed features can fail, and Moodle intends to make Router configuration mandatory in a future release. It’s worth checking your setup now.
How to Check Composer and Router Warnings
Go to Site administration → Server → Environment and scroll to Other checks. Moodle may show warnings if Composer dependencies are missing or the Router is not configured. These warnings don’t necessarily block a standard Moodle 5.3 installation, but some features may need these components.
How to Check if the Moodle Router Is Configured Correctly
Go to Site administration → Reports → System status and find Router configuration. A green OK means Moodle’s summary check indicates the Router is configured correctly.
Click Router configuration to open the detailed report. If all checks show green OK labels, the Router is passing Moodle’s configuration tests.

If any checks fail, follow Moodle’s official Router setup guide or ask your hosting provider for help. Instructions vary by web server.
Step 4. Understand Composer
Composer is a tool that downloads and manages PHP libraries used by Moodle. You don’t need to know how to use it day to day, but your server administrator may need it when installing or upgrading Moodle.
Composer is optional for most Moodle 5.3 installations, although certain features require it. Moodle’s installation guide states that Composer will become required in Moodle 6.0. Setting it up now can make that future upgrade easier.
Composer runs from the main Moodle directory, not from /public/. It installs the required PHP libraries into a vendor/ folder alongside public/. Inside vendor/, you’ll see an autoload.php file and folders containing third-party libraries, as shown below.
If you already use Composer, keep its dependencies in sync when updating Moodle code. You can check for missing dependencies on the Environment page shown in Step 3.
For the current installation command and requirements, see Moodle’s official installation guide (Composer dependencies section).
Step 5. Run the Upgrade and Check Your Site
Once your Moodle files and server settings are ready, complete the database upgrade using Moodle’s official instructions. Command-line upgrades are particularly useful for larger sites, while the browser-based process may suit smaller installations.
Afterward, check that you can log in, open courses, upload files, run scheduled tasks, and use your theme and plugins. Purge Moodle caches if necessary. Also revisit the Router status page to confirm its checks pass.
Read the official Moodle upgrade instructions.
Quick Troubleshooting Tips
| Problem | What to check |
|---|---|
| Site won’t load after upgrading | Check the document root, PHP requirements, and server error logs. |
| Theme or plugins missing | Check their Moodle 5.3 compatibility and correct locations under /public/. |
| Router status shows errors | Review your web server rewrite configuration using Moodle’s Router guide. |
| Missing PHP libraries | Check whether the feature requires Composer and whether dependencies have been installed. |
What About Future Moodle Releases?
The /public/ structure is already part of Moodle 5.3. The Router is becoming more important as Moodle adds new routed features, and Composer is scheduled to become a requirement in Moodle 6.0.
You don’t need to rebuild your hosting setup unnecessarily. But if you’re upgrading to Moodle 5.3 now, it’s a good opportunity to check these components, keep a staging site, and make sure your hosting provider can support future requirements.
Bonus Tip: Refresh Your Moodle Site While You Upgrade
A Moodle upgrade is also a good time to review your site’s design and learner experience. If your current theme is outdated, a ready-made theme can be a practical alternative to commissioning a bespoke Moodle design.
Our premium Moodle themes Lumo, Edutor and Maker offer professionally designed, ready-to-customize layouts for universities, training providers, and corporate learning sites. Choose the theme release that matches your Moodle version.
They can help you launch a professional-looking learning site without the cost and complexity of bespoke theme development. You’ll still need to meet Moodle’s hosting and upgrade requirements.
All themes are available as a one-time purchase, with optional paid version upgrades. You can also evaluate a purchased theme on your own Moodle installation under our 30-day money-back guarantee. See our licensing and refund FAQ for details.