Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
FREEDOM251

Freedom251 › Blog › Git

How to Check Which Version of Moodle You Are Running

By Freedom251 Team · · 8 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The quickest way to identify a Moodle site’s version is to sign in with an administrator account and open Site administration > Notifications. That page displays the Moodle version and build information. If you need the code-level values or cannot open the administration page, read the installation’s version.php file in a text editor. Git-managed installations can also be checked from the repository, while non-administrators may get a branch clue from the page’s Moodle Docs for this page link.

Choose the method that matches your access

Moodle exposes its version in several places because different people have different levels of access. The administrator page is normally the best choice for a site owner. Filesystem and Git checks are useful for developers, hosting staff and support technicians who need to verify the code actually deployed on the server. A teacher without administrative access may be able to identify the major branch, but that shortcut is conditional and does not reliably provide the exact patch or build.

As an Amazon Associate I earn from qualifying purchases.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Method Access needed What it identifies Effort Best use
Site administration > Notifications Moodle administrator account Displayed Moodle version and build information Low Routine site-owner check
version.php Filesystem access to the Moodle code directory Machine-oriented $version and human-friendly $release Moderate Exact code-level verification
Moodle configuration globals A script running inside the Moodle installation $CFG->version and $CFG->release Moderate Diagnostics and compatibility checks
Git history Shell access to a Git checkout Commit associated with the installed version file Moderate Git-managed deployments
Moodle Docs for this page Teacher or other logged-in user, if enabled Usually a branch clue in the documentation URL Low Finding an approximate branch without admin access

Use the administrator page first

MoodleDocs identifies Site administration > Notifications as the normal place to find the version. It is the least invasive method: you do not need shell access, you do not need to inspect application files, and you do not need to run a diagnostic script.

  1. Sign in to the Moodle site with an account that has administrator privileges.
  2. Open Site administration from the administration menu.
  3. Select Notifications.
  4. Read the Moodle version and build information shown on that page.

Record the complete value exactly as Moodle displays it. When reporting a problem, include both the release wording and any build information rather than shortening it to only a major number. Support staff may need the full string to distinguish a maintenance release from another release in the same branch.

#1 Best Overall
Sale
TOZO A1 Wireless Earbuds Bluetooth 5.3 Light Weight in Ear Headphones | IPX5 Waterproof,2 Mics for AI Calls,Immersive Premium Sound Bass Headset with Charging Case,32 EQ via App Black
  • [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
  • [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
  • [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
  • [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
  • [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.

If Notifications is not visible

A missing menu item usually means the account is not a site administrator, the administration menu is collapsed, or the site’s interface differs from the expected layout. Do not infer the version from the appearance of the theme or from a course page. Ask an administrator to perform the Notifications check, or use one of the code-level methods below if you manage the server.

Read the exact values in version.php

Every Moodle installation has a core code directory containing a version.php file. MoodleDocs states that the exact Moodle version can be obtained by viewing moodle/version.php in a text editor. This is a server-side file, not a normal web page.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Locate the directory containing the Moodle application code. The directory may be named moodle, or it may be the application’s document-root directory.
  2. Open that directory’s version.php file in a plain-text editor on the server or through your approved file-management process.
  3. Find the machine-oriented $version value and the human-friendly $release value defined in the file.
  4. Copy both values without changing them. Keep the file closed when finished.

The two variables serve different purposes. $release is intended to be read by people and commonly contains the release and build wording. $version is the machine-oriented core code version used by Moodle’s internal checks. If you are documenting an installation, retaining both values removes ambiguity between a branch name and the exact code revision represented by that installation.

Do not open the file as browser content

MoodleDocs specifically cautions that version.php should not be viewed in a browser as an ordinary page. A web request may be blocked, may return an unhelpful result, or may expose behavior that is inappropriate for a code file. Use a text editor through server administration tools instead. Reading the file does not require editing it; do not save changes merely to inspect the values.

Make sure you read the active code directory

Large Moodle installations sometimes retain an old release beside the live one, or use a deployment layout in which the web server points to a particular directory. Check the directory configured as the active Moodle code location before opening version.php. Reading a backup or an unused staging checkout can produce a perfectly valid version number for the wrong site.

Rank #2
Sale
Smart Watch for Men Women Compatible with iPhone Samsung Android Phone 1.69 inch Full Touch Screen IP68 Waterproof Bluetooh Fitness Tracker Heart Rate/Sleep Monitor (Black)
  • 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
  • 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
  • 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
  • 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
  • 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.

Expose the version through Moodle’s configuration object

Custom Moodle code can read the same core information through the global configuration object. MoodleDocs identifies $CFG->version and $CFG->release as the values copied from the version information. This approach is useful when you are building an internal diagnostic page, an automated compatibility check, or a support script that already runs inside Moodle.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • $CFG->version provides the machine-oriented version value.
  • $CFG->release provides the human-friendly release value.
  • Read the values in a Moodle-initialized context so that the global configuration object has been loaded.
  • Present the values as read-only output; a diagnostic should report them, not alter them.

For a support record, label which field produced each value. That prevents a machine-oriented number from being mistaken for a user-facing release string when the output is copied into a ticket or inventory system.

Check a Git-managed Moodle checkout

If Moodle was deployed from Git, the repository can show which commit supplied the installed version file. Start by checking the current branch with git branch. Run the command from the checkout that is actually deployed, not from a separate development clone.

Moodle 5.1 and later

For Moodle 5.1 and later, MoodleDocs gives this command:

git log --oneline -1 public/version.php

The public/version.php path is important because newer Moodle layouts place the public version file beneath public/. The command prints the most recent commit affecting that file, providing a concise repository-level indication of the deployed version file’s history.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
New Bee Guitar Cable 10ft Electric Instrument Bass AMP Cord
  • [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
  • [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
  • [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
  • [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
  • [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by

Moodle 5.0 and earlier

For Moodle 5.0 and earlier, use:

git log --oneline -1 version.php

Here the version file is at the checkout’s top level. Using the newer public/version.php path against an older layout, or the older path against a newer layout, can lead to a path-not-found error or cause you to inspect the wrong file.

Confirm the checkout is the one serving the site

Git history describes the files in a particular repository. It does not by itself prove that the web server is serving that checkout. Compare the repository location with the active web-server document root or deployment target, then corroborate the result in Notifications or the live installation’s version.php. This matters when production and staging environments are on the same host.

What you can learn without administrator access

A regular teacher may be able to select Moodle Docs for this page at the bottom of a Moodle page if the administrator has enabled that link. MoodleDocs documents this shortcut for English- or German-language sites. The resulting documentation URL can contain a branch number; examples include numbers corresponding to Moodle 2.7 or 3.2.

Treat the number as a branch clue, not as proof of an exact patch release or build. The link depends on administrator settings and the documented language conditions, and its branch number does not replace the value shown on the administrator’s Notifications page. If the link is absent, that absence does not identify the version; it simply means the shortcut is unavailable in that site configuration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Branch, release and build are not interchangeable

People often ask for “the Moodle version” when they actually need different levels of detail. Use the terminology below when recording or communicating the result.

Rank #4
BSIMB 15.6" Digital Family Calendar & Chore Chart, No Subscription Fees
  • Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
  • Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
  • All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
  • Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
  • Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.
Term or value Meaning in this workflow Where to obtain it
Branch The Moodle line, such as the major/minor series suggested by a documentation URL Conditionally from Moodle Docs for this page
Release The human-readable release and build wording $release in version.php, $CFG->release, or Notifications
Core version The machine-oriented value used by Moodle’s code $version in version.php or $CFG->version
Git commit The repository change associated with the version file in a Git checkout The appropriate git log --oneline -1 command

When a vendor, plugin maintainer or internal support team asks for the build, provide the complete Notifications output or both version-file variables. Supplying only a branch number can leave several possible maintenance releases unresolved.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot common checks

You can log in but cannot open Site administration

Your account probably lacks administrator privileges. Ask a site administrator to read Notifications, or request a server-side check of version.php. A teacher-level account should not be granted broader permissions merely to answer a version question.

The Notifications page loads but does not show the expected details

Check that you are on the intended Moodle site and that the page has finished loading. If the display remains incomplete, have a server administrator read the active installation’s version.php. The file-based method avoids relying on the administrative interface while still exposing the core values.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The version file cannot be found

Verify the application directory and deployment layout. In a newer Git-managed layout, the relevant path may be public/version.php; in older layouts, it is version.php at the checkout’s top level. Also check whether you opened a staging, backup or inactive release directory instead of the code directory serving the site.

The Git command reports that the path does not exist

Use the command matching the Moodle layout: public/version.php for Moodle 5.1 and later, or version.php for Moodle 5.0 and earlier. Then confirm that the shell is inside the intended Git checkout and that the file is tracked there.

The documentation link shows a branch but support asks for an exact build

Provide the branch clue as preliminary information only. An administrator should read Notifications, or a person with filesystem access should report the $release and $version values from the live code directory.

A practical reporting checklist

Before opening a support ticket or planning a plugin upgrade, capture the result in a way another administrator can verify:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Record the site or environment checked, such as production or staging.
  • State whether the value came from Notifications, version.php, the configuration object, Git, or a documentation URL clue.
  • Copy the complete human-readable release/build value.
  • Include the machine-oriented value when you used version.php or $CFG.
  • If Git was used, include the one-line commit output and specify whether the path was public/version.php or version.php.
  • Identify any uncertainty: a non-admin documentation URL indicates a branch, not necessarily the exact patch.

This record lets a plugin maintainer or hosting team distinguish an exact deployed code version from an estimate based on interface access.

Which method should you use?

  • Site owner with administrator access: use Site administration > Notifications.
  • Server administrator or developer: read the active code directory’s version.php and retain both variables.
  • Custom monitoring or compatibility logic: read $CFG->version and $CFG->release from a Moodle-initialized script.
  • Git-based deployment: inspect the branch and run the version-file history command matching the Moodle layout.
  • Teacher without admin access: use Moodle Docs for this page only as a conditional branch clue, then obtain an administrator-confirmed value for exact support work.

For most sites, Notifications answers the question in seconds. The file, configuration and Git methods are the verification paths when you need code-level certainty or when the administrative interface is unavailable.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

GitMoodleMoodle administrationversion checkingversion.php

Leave a Reply

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

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.