Why a 5.x or 6.x OpenEMR system needs a planned upgrade path
An OpenEMR 5.x or 6.x system holding patient records cannot be brought current with one package update. The path to the 8.x line is a chain of version-specific steps, each with its own code changes, database changes and environment requirements, and the sequence has to be planned before anyone touches the production server. Recent releases, including the 8.3 and 8.4 lines, require PHP 8.3 or later and a MySQL- or MariaDB-compatible database, so an install that is several major versions behind will usually need changes to its runtime stack as well as to the application.
The exact list of intermediate versions is not something this page can state. Confirm it from the project's OpenEMR releases page and the upgrade guides in the project wiki, and record each version you must stop at, the database and PHP changes it introduces, and the order in which you will apply them. Read the release notes for every stop, not only the last one, because a database migration skipped at an intermediate version can leave the schema in a state the later code does not expect. Your current version, the Docker or bare-metal method you use, and any custom modules will shape that list, so treat the document as specific to your install.
Plan the work as a sequence of checkpoints, not a single window. Each stop needs a verified backup, a restore test, a PHP and database version check, and a test of the workflows your staff depend on, such as scheduling, billing and the patient portal. Ask whoever owns the upgrade to state, in writing, which intermediate versions they expect to use and what they will test at each one. That written path is the baseline you will compare against when a step fails.
What changed between 5.x, 6.x and the current 8.x line
This table compares the changes a 5.x or 6.x system picks up on the way to 8.x, grouped by authentication, API, runtime and security fixes. Read the Impact column to see who notices each change, and the Action column for what to confirm before and after the upgrade. Password policy rows are the ones most likely to affect existing users.
| Change | Impact | Action needed |
|---|---|---|
| 6.0.0 LDAP and Active Directory login | Passwords are checked against the directory, but each user must still exist in OpenEMR. Accounts that exist only in the directory may not log in. | Confirm the LDAP settings in the Administration Globals wiki and map each directory account to an OpenEMR user before cutover. |
| 6.0.0 password length limits | Existing passwords may not meet the new length rules, which can force resets at the next login. | Confirm the minimum and maximum length behavior in the Administration Globals wiki and warn users before the upgrade. |
| 6.0.0 strong password rule (all 4 character types) | Passwords without uppercase, lowercase, digits and symbols may be rejected when changed, and users may be surprised at login. | Confirm how the rule applies to existing passwords and communicate the new requirement to all users. |
| 6.0.0 reuse prevention (up to 5 prior passwords) and expiration settings | Users may be blocked from reusing recent passwords, and expired passwords may force a change on the next login. | Confirm the reuse count and expiration values in the Administration Globals wiki and set them deliberately, not by default. |
| 6.0.0 Bcrypt, Argon or SHA512 hashing choice | The hashing method is a configuration choice, and changing it affects how stored passwords are handled. | Confirm the hashing setting and how existing hashes are handled before changing it on a production system. |
| 6.1.0 Google Sign-In | Adds a sign-in option. Accounts linked to Google depend on an external identity provider. | Enable only if your policy allows it, and confirm the setup steps in the Administration Globals wiki. |
| FHIR API (FHIR R4, US Core 8.0, SMART on FHIR v2.2.0, OAuth 2.0 and OpenID Connect) | Apps that connected to older API behavior may need updated client registrations and scopes. | Inventory connected apps, confirm their scopes and token settings in the FHIR README, and retest each integration. |
| PHP 8.3 or later in recent releases | Older PHP versions cannot run recent releases, so the PHP runtime must change as part of the upgrade path. | Confirm the PHP version for the target release in the GitHub releases page and plan the runtime change with the database work. |
| 8.3.0 and 8.4.0 security fixes (FHIR APIs, patient portal, billing, fax and SMS module, fee sheet) | Systems that stay on older releases remain exposed in these areas, including those holding patient data. | Apply the fixes as part of the upgrade, and review portal, billing and API access logs for the period before patching. |
How the upgrade chain works version by version
An upgrade from OpenEMR 5.x or 6.x is a sequence of stops, not a single jump. Each version has its own upgrade guide, its own database changes and its own PHP requirement, and they must be applied in the order the project published them. Skipping a stop or applying a later stop's database step first is the most common way these upgrades fail. Before you touch anything, write down your current exact version from the admin interface, then list every intermediate minor release between that version and the 8.x line, along with the upgrade notes for each one.
Docker deployments have an automatic path that starts from 5.0.1, which tempts teams to assume the container will carry them to 8.x without further work. Verify that assumption rather than trusting it. Confirm the path against the image tags you intend to run, check that the sites volume is mounted so per-site configuration and documents survive each step, and confirm that the container actually completed the database upgrade at every stop. Once you reach the 8.x minor line, you still need to apply the latest patch releases, such as 8.3.0 and 8.4.0, because the minor tag alone does not carry later security fixes. Check the OpenEMR releases page at each stage, since release notes are where you will find the current patch state.
For every stop, confirm three things before you start: the database engine and minimum version the release requires, the PHP version it requires, and any database schema change the guide asks you to run. Database and PHP jumps often happen in the same window as a version change, so plan the database server and PHP runtime upgrades before the application step that depends on them. Keep a record of each stop with a tested backup taken just before it, so a failed step can be reversed to the last known good state. If the number of intermediate stops, custom modules or database changes makes this chain hard to verify, a staged rebuild on new infrastructure with migrated data is often easier to test and document than an in-place walk.
What to prepare before touching a production OpenEMR system
Upgrading a 5.x or 6.x system crosses several version-specific steps, and each step changes data, code or settings. The cards below cover what to capture, test and verify before the first change, so that every stage can be rolled back and checked.
Full backup of database and sites
Take a complete backup of the MySQL or MariaDB database and the entire sites directory, including each site's documents folder, edi, era and letter_templates. Store the copy off the server and test a restore on a separate host before relying on it. Backups are the only reliable rollback point once the first version-specific upgrade script has run against the database.
Inventory of custom modules and core edits
List every custom module, third-party module, template and direct edit to core files, and record where each one came from. Upgrade guides assume core code is unchanged, so each edit needs a decision: port it, replace it with a supported module version, or drop it. Ask each module developer whether a version exists for the target release.
Current PHP and database versions
Record the exact PHP version, the database server and its version, and the web server configuration. Recent OpenEMR releases require PHP 8.3 or later, so a 5.x or 6.x host may need its PHP runtime replaced in stages before the application can run. Confirm the database minimum for each target release in the release notes, since the server may need upgrading before the application.
Test environment from production data
Build a staging system from a recent copy of production data, with the same PHP, database and module versions. Run each version-specific upgrade there first and time it. Use the staging copy to test scheduling, billing, the patient portal, reports and interfaces, because these are where a jump between major versions most often breaks a workflow.
Password and authentication settings
Review the password policy, expiration, reuse and hashing settings, plus any LDAP, Active Directory or Google Sign-In configuration, before the upgrade. Settings introduced in 6.0.0 and 6.1.0 can change how existing users log in. Confirm which accounts depend on each setting, document current values, and plan how users will reset passwords if a hashing change forces it.
- Prior passwords blocked
- 5
Securing OpenEMR controls after upgrade
Plan to verify, after every upgrade stage, that only HTTPS is allowed, that setup.php and other admin scripts are removed, and that direct web access to sites/*/documents is still blocked. Upgrades can restore web server or file permissions that were tightened by hand. Record these checks as a repeatable test so they run on each stage, not only at the end.
The upgrade sequence and where to stop and roll back
This sequence moves an OpenEMR 5.x or 6.x system to a supported current release one verified stop at a time, so that each database and PHP change has a tested state to return to. The output is a cut-over-ready production system with a documented rollback point at every stage.
Freeze changes and take a verified backup
Stop routine data entry where your workflow allows, or schedule a window, and take a full backup of the database, the sites directory (including documents, edi, era and letter_templates) and the configuration files. Record the current OpenEMR version, PHP version, database server version and any custom modules or core edits. Restore the backup to a scratch host to confirm it is readable. Done when a restore has been tested and the inventory is written down. This backup is your first named rollback point.
Build a test copy of the production system
Rebuild the application, web server and database on separate infrastructure, then load a recent copy of production data. Keep the test copy off any network path that can reach real patients, external partners or outbound messaging. Confirm the test copy matches production in version, configuration and data volume before any upgrade step runs. Done when the test copy starts, a clinician-level user can log in and the same test records are visible as in production. Snapshot the test copy before the first upgrade so you can reset it between attempts.
Confirm the target version path from the official sources
Read the release list on the OpenEMR releases page and the version-specific upgrade guides in the OpenEMR wiki and repository. Write down every version stop between your current release and your target, with the PHP and database requirements each one states. Exact commands, file names and version stops must come from the official guides, not from this page or from memory. Done when you have a signed-off stop list that the project's own documentation supports. If the path is unclear, ask the project or a professional support vendor before proceeding.
Upgrade the database server and PHP to the first required level
Before any application code changes, upgrade the database server and PHP to the minimum level the first required OpenEMR stop specifies. Confirm the database engine is MySQL- or MariaDB-compatible at a version that version accepts, and that the PHP extensions OpenEMR uses are installed. Run the application's health and login checks on the old OpenEMR code to show the platform change alone does not break it. Done when the old release runs cleanly on the new database and PHP. Keep the pre-change snapshot of the database server and PHP host as the rollback point for this step.
Apply each version upgrade and check the database at every stop
Deploy each intermediate version in the order your stop list gives, following its upgrade guide. After each deployment, run the database upgrade check in the administration interface, confirm the version shown matches the release, and review the error log for schema or deprecation failures. Test a set of core workflows at each stop: scheduling, encounter creation, billing entry and reports. Take a new backup and a snapshot before moving to the next stop. Done when the database reports the expected version and the core workflows pass at each stop. If a stop fails, restore the snapshot from the previous stop and do not skip ahead.
Run login and password policy tests
Once the target version is reached, test every authentication path that your organization uses: local accounts, any LDAP or Active Directory integration, Google Sign-In if enabled, and multi-factor authentication. Check password length, complexity, reuse and expiration rules against the settings in the administration globals, because the configuration may have been carried over from an older release with different defaults. Confirm that a disabled user cannot log in and that an expired password forces a change. Done when a written test log shows each path passing or a named defect opened for each failure.
Verify FHIR API and patient portal access
If the system exposes the FHIR API, the patient portal or any third-party app, test each integration against the target version. Confirm OAuth 2.0 token issuance, scope enforcement and the SMART on FHIR launch path with a test client, and confirm that Bulk Data export works only for authorized clients. Test patient portal login, document access and messaging, and confirm that the directories under sites documents are not directly reachable from the web. Done when each external access path has a recorded test result and the old integration credentials have been rotated or confirmed.
Cut over and keep the rollback path open
Repeat the upgrade sequence on production during the agreed window, using the same stops and checks that passed on the test copy. Retain the last verified pre-cutover backup and the production snapshot of the previous image or host until your post-cutover review is signed off. Confirm the live system reports the target version, that clinicians can complete a test encounter and that external integrations are receiving traffic. Done when the production checks match the test log and the rollback point has been recorded with its location and restore owner. Keep the old host or image for a period your governance process sets.
How the upgrade stops, database and PHP jumps and checkpoints fit together
The diagram starts with assessing the installed OpenEMR version and branches into a stepwise upgrade along the version-specific guides or a staged rebuild on a new host. Each stop in the chain takes a backup checkpoint, then checks the database and PHP requirements and passes a test gate before moving on. A failed gate sends the team back to the last checkpoint, and only a validated 8.x target closes the path.
Decision path, version stops, checkpoints and the rollback route for an old OpenEMR upgrade.
When a staged rebuild is safer than an in-place upgrade
A staged rebuild is the safer route when an in-place upgrade would have to change too much at once. Rebuild on a fresh, supported host and database, then migrate the data, if the system carries heavy edits to core files, third-party modules that have no version for the target release, a host or operating system that cannot run the PHP version the target needs, or a database server that cannot reach the minimum version the target requires. In those cases each upgrade step may fail for reasons outside OpenEMR itself, and rolling back a half-changed production system is harder than starting clean. Before choosing, inventory the core edits and modules, and ask each module developer in writing whether a build exists for the release you are targeting.
A rebuild trades upgrade risk for migration risk. You need a complete export of the patient, scheduling, billing and document data, a fresh install on the new stack, and a validation pass that compares record counts, sample charts, open balances, document links and user accounts between the old and new systems. Documents stored under the site directories must move with their database references, and users need password resets or directory re-binding, since authentication settings changed across the 5.x to 8.x span. Plan the validation as carefully as the cutover, and treat any sample that does not match as a blocker. Keep the old system read-only and available until the new one has passed reconciliation.
Whatever the route, check the rebuild path against the migration guidance for your platform before you commit. The OpenEMR releases page and the OpenEMR home page are the starting points for current version requirements, and the Administration Globals wiki documents settings that must be reviewed on the new system. Confirm with your vendor or partner which data export formats and import steps are supported for your version, and confirm the target PHP and database minimums against the release you will install, not against an older guide.
What makes a very old OpenEMR upgrade take longer
This table lists the factors that most often extend an upgrade from OpenEMR 5.x or 6.x to the 8.x line, with why each one matters and how to reduce it. Read each row as a question to answer about your own install before you agree on a plan or a quote.
| Driver | Why it matters | How to reduce it |
|---|---|---|
| Number of version stops | Each version-specific step can bring its own database and PHP changes, so the count of stops between your install and 8.x multiplies the testing and rollback points. | Record the exact current version, list every guide between it and 8.x, and confirm with the project which stops must be applied in order. |
| Custom modules and core edits | Modified core files and third-party modules may break or be overwritten during an upgrade and must be retested or replaced by updated versions. | Inventory every module and file change, ask each module developer whether a version exists for 8.x, and keep core edits in a documented patch list. |
| Multisite installs | Each site has its own database and document directories, so every site needs its own upgrade run, verification and rollback point. | Count the sites, confirm each site's configuration file and directories, and schedule a per-site upgrade and test order before starting. |
| Data volume and stored documents | Large document stores and databases lengthen file copies, database migrations, backups and restore tests. | Measure database size and the documents directory before planning, and confirm backup and restore times on a copy of production. |
| Number of users affected by password policy changes | The 6.0.0 password rules, including length, character type, reuse prevention and expiration, can lock out or force a reset for many accounts at once. | Review the password settings in Administration Globals, decide which rules to enable, and plan the account communication and help desk load. |
| Integrations such as FHIR clients and interfaces | FHIR apps, OAuth clients, lab or billing interfaces and external reporting may depend on endpoints or settings that change between versions. | List each integration with its owner, test it against a staging copy of the upgraded system, and confirm credentials and scopes still work. |
| Team familiarity with PHP and database administration | Upgrades require PHP version changes, database server changes and command-line work, which slows teams that have not done them before. | Identify who owns PHP and database tasks, confirm the required PHP and database versions with the release notes, and decide early whether a partner should cover those steps. |
Questions buyers ask before upgrading an old OpenEMR system
What does it cost to upgrade an old OpenEMR system?
The cost depends on the written scope, which is why no fixed figure applies to every 5.x or 6.x system. Cost comes from four drivers: how many version stops the path needs, how many customizations and third-party modules must be inventoried and retested, how many database and PHP jumps the environment absorbs, and how much clinical and interface testing the practice requires. Work is paid for as a one-time project, plus any ongoing patching or support you choose afterward. Ask any provider for a quote that lists each version stop, each module, the test cases and the sign-off steps, and whether backups, hosting changes and staff time are included. Confirm the figure against that written scope, not against a generic estimate.
How long does an OpenEMR 5.x or 6.x upgrade take?
Duration is set by the number of version-specific steps, the database and PHP changes along the path, and how long clinical testers can give to validation. Systems with many custom modules, multiple sites or interfaces to labs and billing clearinghouses usually take longer because each interface needs a retest. Scheduling also depends on your change window and on whether you hold a patch window for production patient records. Ask for a timeline in the written scope that shows each stage, its entry and exit criteria, and the dates on which your staff must be available. Confirm the schedule with the provider and your own change board before work starts.
What must our team provide for an OpenEMR upgrade?
The team must provide a verified backup and restore test, administrative access to the application, database and hosting environment, and a current inventory of custom code, modules and interfaces. You also need named clinical and administrative testers who can run real workflows such as scheduling, billing and patient portal use, and a sign-off owner who accepts the result in writing. Expect the provider to ask for copies of your configuration, sqlconf.php details, and documentation of any site-specific settings. Missing items are the most common cause of delay, so confirm each one in the scope before the project starts.
Can our internal IT staff upgrade OpenEMR themselves?
Internal staff can upgrade OpenEMR when they have Linux, web server, PHP and database administration skills, time to run each version stop in a non-production copy, and clinical staff who can test. The harder parts are usually not the commands but the testing, the custom module updates and the rollback plan for a live patient record system. Before deciding, compare your team's capacity against the list of version stops, the database and PHP requirements, and the retesting effort. Many organizations split the work, keeping hosting and testing in-house while bringing in outside help for the stepwise path and the validation. Document the decision and who holds accountability for the result.
Is Docker's automatic upgrade path enough for an old OpenEMR install?
Docker's automatic path can move a container from 5.0.1 along the supported chain, but it does not replace the planning, backup and testing an old system needs. The container image changes the application, not your data, custom modules or interfaces, so each version stop still requires checks. Confirm that the sites volume persists across the change, that modules outside sites are reviewed, and that database and PHP changes are handled before the image moves. Patch releases follow a different route than the container's automatic upgrade, so they need their own plan. Read the Docker deployment documentation and test the full chain in a copy before relying on it for production records.
Does upgrading OpenEMR keep ONC certification?
Certification is held by the software version and its configuration, and the OpenEMR project states that OpenEMR is ONC certified and asked users to upgrade to version 8 by March 1, 2026 to keep their system's active certification. Moving an old system to version 8 is therefore the route the project describes for keeping certified status, but the practice must also run the certified version in a certified way, with the required settings and records. Your organization should confirm current certification status and reporting obligations with the project's documentation and its own compliance lead. Certification is not a guarantee, and an upgrade alone does not prove compliance with HIPAA or other rules.
When is a staged rebuild safer than an in-place upgrade?
A staged rebuild is usually safer when the system has many undocumented edits, unsupported modules, an unclear database history or a host that no longer meets the newer PHP and database requirements. In that case, build a fresh 8.x environment, migrate data and configuration in steps, and run parallel testing before cutover. Rebuilds also suit systems that need a security review of the old host, since they reduce carried-over risk. The trade-off is more migration effort and a longer parallel run. Make the choice in the scope after an inventory and a short test of the existing system, and record the rollback plan for either route.
What risks should we plan for during an old OpenEMR upgrade?
The main risks are data loss during an unverified backup, broken custom modules, interface failures with labs or billing partners, and unexpected PHP or database incompatibilities. Security exposure is also a risk because old systems may still run settings that predate newer authentication and password controls. Plan for each risk with a restore test, a list of interfaces to retest, a module-by-module decision, and a rollback path that has been rehearsed. Treat the upgrade as a change to patient record infrastructure, and involve your privacy and security leads before go-live. Confirm the risk plan as part of the written scope.
What the HIPAA Security Rule expects during an upgrade
The HIPAA Security Rule (45 CFR Part 164 Subpart C) applies to covered entities and their business associates for all electronic protected health information (ePHI) they create, receive, maintain or transmit, so an OpenEMR upgrade is a change to a system that holds ePHI and should be handled like one. Treat each 5.x or 6.x step as a controlled change recorded in your risk management and change records: the reason for the move, the target version, the backup taken before the database or PHP changes, the test results, and who approved the cutover. Where the upgrade touches access controls, audit logging or encryption settings, record those settings before and after. Your risk analysis should also be updated if the new version or its dependencies change how ePHI is stored or exposed.
The rule does not issue certificates. HHS states that no Security Rule standard requires an entity to certify compliance, and that private certifications do not prevent HHS from later finding a violation (HHS FAQ 2003). Enforcement runs through complaints, compliance reviews and audits by the HHS Office for Civil Rights, so the evidence you keep is what a reviewer will ask for. A dated upgrade record showing the risk review, the test plan and the rollback option is more useful to that reviewer than a vendor claim that the software is compliant. Business associates such as an outside hosting or upgrade partner are bound by the same Security Rule duties, and the business associate contract should say how they handle ePHI during the work.
The Security Rule is being revised. HHS proposed a major revision on 6 January 2025 (90 FR 898), and as of October 2026 no final rule has been published, with the Unified Agenda projecting final action for July 2027. Plan against the current rule, but confirm with your privacy counsel and compliance lead which obligations apply to your organization, whether any state law adds requirements, and whether the proposed changes would affect your upgrade plan before the work is scheduled.
How DeployOpen scopes, delivers and supports an OpenEMR upgrade
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, and an upgrade from OpenEMR 5.x or 6.x is handled the same way. The work starts with a written inventory of the existing install, then moves through staged rebuilds, testing and handover.
How we scope
- Inventory the current OpenEMR version, PHP and database versions, Docker or package deployment, and multisite layout before quoting.
- Record custom modules, core edits, interfaces and reports that must still work after the move.
- Agree the upgrade route, test plan, cutover approach and deliverables in writing before work starts, since engagements are fixed-scope.
How we build
- Build a staged copy of the system in infrastructure you control and walk the version-specific upgrade steps in order.
- Upgrade the database server and PHP runtime ahead of the application where the chosen release requires it.
- Test logins, access control, interfaces, billing and reporting on the staged copy before any production cutover.
How we hand over
- Deliver a runbook covering each upgrade step, the rollback point, backup checkpoints and the configuration values changed.
- Document remaining security settings, such as HTTPS-only access and removal of setup and admin scripts, with verification steps.
- Hand over the results of the post-upgrade test run so your team can review what passed, what failed and what was fixed.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after the initial upgrade is complete.
- Retainers can cover later patch releases, such as security updates to the 8.x line, applied through a planned window.
- Confirm the response expectations, ownership of the environment and the support boundary in the written agreement.

