Upgrading an OpenEMR multisite installation

Upgrading an OpenEMR multisite install means repeating the site-level steps for every site, not just the default one. This page covers the path, the per-site checks, the effort drivers and rollback.

On this page

Why upgrading an OpenEMR multisite installation takes more than one upgrade

Upgrading a multisite OpenEMR install means upgrading every site, not just the default one. If your team hosts several sites from one OpenEMR code base, moving to a newer release is a per-site job. The default site is not enough. Each additional site has its own documents, edi, era and letter_templates directories, its own settings in sqlconf.php, its own database upgrade run from admin.php and its own ACL upgrade. A site that is skipped keeps running the old code against data that has already changed, so the inventory of sites should be settled before the maintenance window opens.

The supported path is set out in the OpenEMR Multiple Sites Module wiki. In outline, you move each site's directories, copy the relevant sqlconf.php variables with $config=1, run Upgrade Database in admin.php for each site, and run acl_upgrade.php?site=<site_id> for each site. Patches follow the same pattern, with Patch Database run in admin.php for each site. Confirm the exact order and the site identifiers in your own environment against the wiki before you script anything, because a mistake repeated across several sites multiplies the rollback work.

Check the platform prerequisites for the target release early, since they often decide whether the upgrade is possible at all. Recent releases, including 8.4.1, require PHP 8.3 or later and a MySQL- or MariaDB-compatible database, so the PHP and database servers may need upgrading before the code changes. The 8.x line also matters beyond features: the OpenEMR website told users to move to version 8 by March 1, 2026 to keep their system's active ONC certification. Ask your team to record the current version of every site and the target release, and confirm with your certification or compliance lead which sites fall under that requirement.

What changes in recent releases and what each change means for multisite

This table compares the 8.3.0, 8.4.0 and 8.4.1 releases against what each one means for a shared multisite install. Read each row as a question to answer before you upgrade the code, and confirm the full deprecation list in the release notes before scheduling the change.

Release or requirementImpact on a multisite installAction needed
8.3.0 (August 18, 2026)Fixed security vulnerabilities in FHIR APIs, the patient portal, billing, the fax and SMS module and the fee sheet. Each site carries its own copy of this exposure through the shared code.Plan the code upgrade so every site receives the fix in the same window. Confirm which fixes apply to modules your sites actually use.
8.4.0 (September 13, 2026)Fixed the same vulnerability areas as 8.3.0 and raised database server minimums for the 8.4 line (MySQL 8.4 and MariaDB 10.11).Check the database server version before you update the code. Confirm the minimums in the release notes and in the upgrade guide for your path.
8.4.1 (September 20, 2026)Followed 8.4.0 one week later. Sites on 8.3 or 8.4.0 should check whether this release applies to their path.Use 8.4.1 as the target if your change window allows it. Record the version each site reports after the upgrade.
PHP 8.3 or laterRecent releases require PHP 8.3 or later. A shared host serves every site, so one old PHP runtime blocks all of them.Confirm the PHP version on the shared web host and any container image before you start. Check that extensions used by custom modules are present.
Database server versionAll sites share one database server, but each site has its own database. A server upgrade affects every site at once.Upgrade and test the database server first in a staging copy of all sites. Then run the per-site database upgrade in admin.php.
Per-site database upgrade and ACL upgradeUpgrade Database in admin.php and acl_upgrade.php?site=<site_id> must run for each site after the code change. A skipped site keeps old schema or permissions.Keep a checklist with one row per site ID. Mark each site as complete only after both steps finish for that site.
Patch releases after a major upgradePatches follow the same pattern as upgrades, with Patch Database run in admin.php for each site.Plan each security patch as a multisite change with the same per-site steps, not as a single host update.

How to upgrade each site in an OpenEMR multisite install

This sequence moves every site in a multisite OpenEMR install onto new code, with each site's files, configuration, database and access controls brought forward in turn and checked before the next site is touched.

  1. Back up code, sites directory and every database

    Before anything changes, the team takes a full copy of the current OpenEMR code, the sites directory and the database for every site, including the default site. Backups should be restorable on a separate host, and the team should confirm they can read and restore them, not just that the files exist. This is the first rollback point: if any later step fails, the installation can return to its current state from these copies. Done means each backup has been verified and recorded with its date and the OpenEMR version it came from. Confirm your backup tooling with your own environment, because the built-in backup tool is no longer part of the software.

  2. Confirm PHP and database versions

    The team checks the PHP and database server versions against the requirements of the target OpenEMR release before deploying code. Recent releases require PHP 8.3 or later and run on MySQL- or MariaDB-compatible databases, but the exact minimum versions for the target release must be confirmed in its release notes. If the server is behind, upgrade PHP or the database first, on a test copy, and retest. Done means a written check shows each web and database server meets the target release's stated requirements, with the results kept with the change record.

  3. Deploy the new OpenEMR code

    The platform team deploys the new OpenEMR code to the web root while keeping the existing sites directory, so each site's configuration and uploaded files remain available. Local edits and third-party modules are reviewed against the release before they are reinstated. This is where the installation changes from the old version to the new one, so the team should have the rollback path from the first step ready. Done means the new code is in place, the sites directory is intact, and the site login pages load without a database error on the default site.

  4. Move each site's documents, edi, era and letter templates

    For each non-default site, the team moves the documents, edi, era and letter_templates directories into the location the new release expects for that site, keeping file ownership and permissions consistent with the web server. The sites directory is not the place to store these files for a site whose data should remain separate from the default site. Check each site's folder structure before and after the move so no patient document is left behind. Done means a file count and a sample check for each directory match the pre-change state for every site.

  5. Copy sqlconf.php settings with config set to 1

    For each non-default site, the team copies the database connection variables into that site's sqlconf.php file and sets the config variable to 1, so the site connects to its own database. Each site's settings should be compared with the backup copy to catch typos in host names, database names or credentials. Secure file permissions and confirm that setup scripts and web access rules still apply to the sites directory. Done means every site's sqlconf.php matches its recorded settings and each site's login page connects to the intended database.

  6. Run Upgrade Database in admin.php for each site

    An administrator signs in to admin.php for each site and runs Upgrade Database, one site at a time, so each database schema is brought to the new release. The team records the output of each run and any warnings before moving to the next site. A failure on one site should stop the rollout and trigger a restore of that site's database from backup, which is the rollback point after each site's database upgrade. Done means each site reports a completed database upgrade with no errors in its log, and the result is recorded per site.

  7. Run acl_upgrade.php for each site

    For each site, the administrator runs acl_upgrade.php with the site identifier as a query parameter, such as the site ID for that installation, so the access control rules are updated for that site's users and roles. Running it once for the default site does not cover the others. Check that role-based access still matches the policy for at least one clinical user, one billing user and one administrator on each site. Done means the ACL upgrade has completed for every site, and the access checks match the documented roles.

  8. Test each site before reopening access

    The team tests each site separately using a checklist that covers sign-in, patient search, scheduling, encounters, documents, billing, letters and any interfaces the site depends on. Testing should use accounts that represent real roles, and the results should be recorded for each site. Patches follow the same pattern: the patch code is deployed, and Patch Database is run in admin.php for each site, with the same per-site checks and rollback points. Done means every site has a signed-off test record and any open defects are assigned before users return.

What to prepare before touching any site

Multisite upgrades fail most often on work that happens before the first command runs. The six items below run in parallel during preparation, and each one gives you a way to recover, compare or sign off before a live site changes.

Full backup of code, sites and databases

Take a complete copy of the OpenEMR code directory, the entire sites directory and the database for every site, taken at the same point in time. Restoring one site without the matching code and files creates a version mismatch that is hard to diagnose. Confirm that you can restore the set to a separate host and that someone other than the person who made the backup has done a test restore.

Multiple Sites wiki

Inventory of sites and customizations

List every site ID, its database name, its document and letter storage paths, and the custom modules or core edits each one depends on. Record which sites use the default site and which are additional sites, because the upgrade steps differ. Ask each site owner which custom forms, templates or third-party modules they rely on, and confirm that the developer of each one has a version for the target release.

Staging copy of the whole multisite install

Build a staging environment that matches production in code version, PHP, database server, sites directory and site configuration, then restore all sites into it. Run the full upgrade there first, including per-site database steps and ACL steps. Confirm that staging uses the same web server rules as production, so issues with the sites directory or blocked paths appear before go-live.

Confirmed PHP and database versions

Check the PHP version and the MySQL or MariaDB version on the target host against the release notes for the OpenEMR version you plan to run. Recent OpenEMR releases require PHP 8.3 or later and run on a MySQL- or MariaDB-compatible database, so confirm the exact minimum for your target release. If the database server must be upgraded first, schedule that work as its own step with its own backup.

OpenEMR releases

Maintenance window and sign-off per site

Agree a maintenance window with each site owner and record who approves the upgrade for that site. Sites in one install share code, so an upgrade affects all of them even when only one owner asked for it. Confirm the rollback decision point for each site, who can make that call, and how users will be told that scheduling, charting or billing is unavailable during the window.

Test script for core workflows

Write a short, repeatable test script that covers scheduling, billing, documents and the patient portal for each site. Run it on staging before the upgrade and again on production after each site's database step. Include a check that uploaded documents open and that letter templates render, since these depend on the per-site directories being moved correctly.

Per-site checks that catch failures a single-site upgrade would miss

Each site needs its own verification because a successful upgrade of the default site proves very little about the others. Directory moves can leave a site pointing at the wrong documents path, a sqlconf.php copy can carry the wrong database name into a site's configuration, and an ACL upgrade skipped for one site leaves that site's permissions stale while everything else looks correct. Build a per-site checklist before the upgrade starts, list every site ID and database name from your install, and tick each one off after its own database upgrade and its own acl_upgrade.php?site=<site_id> run. Confirm the database name in each site's sqlconf.php against the database that site actually reads, not against the one you expect from the site name.

Check login for every site with a user account that has real rights in that site, not only an administrator. Sign in, open a patient chart, and confirm that the menus and role-based permissions match what that site's users were allowed before the upgrade. For document access, open a document attached to a patient in each site and confirm it renders, which proves the site resolves its own documents directory and not another site's. For edi and era handling, confirm the site's folders are in place and that a test file or a recent remittance can still be read by the site's billing functions, and check that new files land in that site's own directories. For letter templates, generate one letter from each site's letter_templates directory and confirm the output uses that site's content. Ask your module developers and your site owners which checks they consider sufficient before you sign off, and record the results per site so a failure can be traced to one site quickly.

Testing and rollback choices by site type

Sites holding live patient records carry the most risk from an upgrade, so testing should be planned against clinical workflows rather than against the software alone. Test the paths clinicians and front-desk staff use every day: patient lookup, scheduling, encounters, orders, billing, the patient portal and any document uploads. Confirm that the documents, edi, era and letter_templates directories for the site moved correctly and that existing files open. Agree on a short window in which clinical staff can report problems, and decide in advance who can authorize a rollback.

  • Clinical workflow tests: Run scripted tests of encounter, order and billing tasks on a copy of the site database before the production run.
  • Document access checks: Open a sample of scanned documents and letters from each patient category to confirm the directory move.
  • Backup before the window: Take a database dump and a copy of the site directories immediately before the upgrade, and confirm the restore works on a test host.
  • Rollback authority: Name the person who can approve a single-site rollback during the staffed window.
  • Interface checks: Confirm that outbound interfaces and portal logins still work after the change.

Before you approve the production run, check that each test has a named owner, a recorded result and a documented restore step.

What drives the effort of an OpenEMR multisite upgrade

This table lists the factors that change how much work an OpenEMR multisite upgrade takes, why each one adds effort, and what to confirm before asking a partner for a scope. Read each row against your own inventory of sites, modules and integrations, because the drivers multiply when several apply to the same site. The main takeaway is that the site count and the number of customizations matter more than the software version alone.

DriverWhy it adds effortWhat to confirm
Number of sitesEach site needs its own documents, edi, era and letter_templates move, its own sqlconf.php settings, a database upgrade in admin.php and an ACL upgrade run for that site.The site IDs, whether each site is the default or a named site, and whether any site is inactive but still holds records.
Size of each site's documents directoryLarge document stores take longer to copy, verify and back up, and a failed copy is harder to detect than a failed schema change.Total size per sites/<site_id>/documents directory, file counts, and whether encryption at rest is enabled for stored items.
Custom or third-party modulesModules outside the core tree may need updated versions or retesting for each site, and each site may enable them differently.A module inventory per site, the vendor or developer for each module, and whether a compatible version exists for the target release.
Core editsChanges made directly to core files are overwritten or conflict during an upgrade and must be reapplied and tested per site.A file-level diff against the source release for every site, and a record of who approved each edit.
Database server version changesA raised database minimum means the server must be upgraded before the OpenEMR upgrade, and that change affects every site that shares the server.Current MySQL or MariaDB version, the minimum required by the target release, and whether sites share one database server.
PHP version gapsRecent releases require PHP 8.3 or later, so a host on an older PHP needs a runtime change that touches every site on that host.Current PHP version on each web server or container, and any extensions the sites depend on.
Number of interfaces and integrationsFHIR API clients, billing clearinghouse connections, patient portal settings and fax or SMS modules each need testing after the change, and some are configured per site.A list of every interface per site, its owner, its test data and whether credentials or endpoints change during the upgrade.
Hosting in one environment or severalSites spread across separate servers, accounts or data centers need separate change windows, backups and rollback plans, and each environment adds coordination.Number of hosting environments, who has administrative access to each, and whether a shared sqlconf.php or filesystem is used.

How the shared code and per-site parts fit during an upgrade

The diagram starts with a backup of the database and the whole sites directory, taken before the shared OpenEMR code is replaced. Each site then gets its own pass: its documents, edi, era and letter_templates directories are moved into the new sites tree, its sqlconf.php values are copied with $config=1, and Upgrade Database runs in admin.php. The acl_upgrade.php?site=<site_id> step is run per site as well. Check each site before moving on, and keep the backup as the rollback path if any site fails.

Per-site steps that follow the shared code change, with the backup as rollback.

Questions buyers ask before upgrading OpenEMR multisite

How much does an OpenEMR multisite upgrade cost?

An upgrade is priced from a written, fixed scope, and DeployOpen does not publish a price list, so a quote follows from the scope you agree to before work starts. The main cost components are the planning and inventory of your sites, the staging rebuild, the per-site upgrade and verification work, and any remediation of custom modules or site-specific settings you find along the way. The one-time work is the upgrade itself. Ask for the quote to list each site separately, the staging and rollback work, and what is excluded, such as third-party module updates or database server changes. Ask whether post-upgrade support or patch work is priced separately, since ongoing support is available as a retainer.

How long does a multisite OpenEMR upgrade take?

Duration depends mainly on the number of sites, how many sites carry custom code or large document stores, and how much testing your clinical staff can complete. Each site needs its own file moves, configuration copy, database upgrade in admin.php and ACL upgrade, so the work scales with site count rather than with a single upgrade run. Database size affects how long each upgrade step runs, and the prerequisite database and PHP changes can add lead time if your servers need replacing. Ask for a timeline in the written scope that separates staging, the production window and post-upgrade testing, and confirm which sites can be taken offline at the same time.

Can our own IT team upgrade a multisite OpenEMR install in house?

Yes, if your team has Linux administration, web server and PHP skills, database administration experience and a reliable staging environment. The upgrade is a documented sequence, but it has several points where a mistake affects every site, such as an incorrect sqlconf.php copy or a skipped ACL upgrade for one site. Be honest about whether you can run a full rehearsal before production, verify each site's documents, edi, era and letter_templates directories, and test clinical workflows with sign-off from practice staff. If any of those are missing, a partner can plan and run the work, or shadow your team and hand over a runbook.

What do we need to provide for a multisite OpenEMR upgrade?

The work needs access and decisions from your side before the first change is made. Typically that includes:

  • Administrative access to the servers, database and any container platform, with a named contact for change approval.
  • A current inventory of sites, their site IDs, custom modules, core edits and third-party integrations.
  • A staging environment that mirrors production closely enough to rehearse each site.
  • Clinical and administrative testers for each site who can confirm billing, scheduling, documents and reports.
  • A signed-off backup and rollback plan, and a change window agreed with the business.

Confirm these items in the written scope, because missing access or testers are the most common causes of delay.

Do OpenEMR multisite patches need the same per-site steps?

Yes. Patches follow the same pattern as version upgrades, so Patch Database must be run in admin.php for each site. Skipping a site leaves that site on the older code path while the others move forward, which creates inconsistent behavior that is harder to diagnose later. Plan patch windows the same way as version upgrades, with staging, backups and per-site verification. Your patch process should record which sites were patched, when, and by whom, so auditors and your own security team can confirm that each site received the update.

Does upgrading OpenEMR multisite keep ONC certification status?

OpenEMR's home page states that the project is ONC certified and told users to upgrade to version 8 by March 1, 2026 to maintain their system's active certification. An upgrade is the step that moves an installation onto a certified line, but keeping certification status also depends on how each site is configured and used, not on the upgrade alone. Confirm with the OpenEMR project and your certification or compliance advisor which version and settings apply to your sites, and do not assume every site inherits the same status. Note that DeployOpen prepares systems and evidence for compliance assessments but does not issue certifications, and independent certification bodies make that determination.

What is the main risk of upgrading a multisite OpenEMR install?

The main risk is an inconsistent state across sites, where one site runs a new database schema or ACL set while another still runs the old one. Other risks include documents or signed forms that do not land in the correct per-site directory, configuration values that were not carried into the new sqlconf.php, and custom modules that break after the core changes. Reduce these risks with a rehearsed sequence on staging, a per-site checklist, verified backups taken before each change, and clinical testing sign-off for every site before it returns to normal use.

How DeployOpen scopes and delivers a multisite upgrade

DeployOpen plans and carries out multisite OpenEMR upgrades inside the client's own infrastructure, starting with a written inventory of every site and its directories, configuration and modules. Each site is upgraded in a defined order, tested, documented and handed over to the team that runs the system.

How we scope

  • We inventory every site, its sqlconf.php settings, documents, edi, era and letter_templates directories, and custom modules before work starts.
  • The written scope lists which sites move, the target OpenEMR version, the database and PHP changes, and the test cases for each site.
  • Engagements are fixed-scope, so the scope, deliverables and timeline are agreed in writing before the upgrade begins.

How we build

  • We run the upgrade on a staging copy of the multisite install first, then move each site's directories and copy its sqlconf.php variables with $config=1.
  • Each site gets its own Upgrade Database step in admin.php and its own acl_upgrade.php?site=<site_id> run, recorded in the change log.
  • We check each site's documents, billing, scheduling and reports after the change, and repeat the same sequence for patch releases.

How we hand over

  • You receive a per-site runbook listing directory moves, configuration changes, database steps and ACL runs in the order they were performed.
  • The handover includes a rollback plan with the backups taken before each site was changed, so your team can restore one site without affecting the others.
  • Your administrators walk through the verification checklist with us so they can repeat it on the next upgrade or patch window.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, so later releases follow the same per-site sequence.
  • A retainer can cover reviewing release notes and security advisories for your OpenEMR version and planning the next patch window.
  • Ask in the quote which support hours, response expectations and retest work are included, since these are set in the written agreement.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.