Moving OpenEMR to a new server without changing versions: the short answer
If your OpenEMR host is ageing, changing provider, or being folded into a consolidated setup, you can keep the exact same version and move it to new infrastructure. The move is a planned copy of the code, the database and the sites data, followed by a parallel run and a tested rollback path. Effort depends on the size of the install, how much it has been customized, how many external interfaces it feeds, and whether the new home is a virtual machine, a container host or a cloud account.
OpenEMR is free software licensed under the GNU GPL v3.0, and it is self-hosted, so your organization owns the migration. No vendor runs the cutover for you, and no one else holds the copy of your patient data. That makes the project plan your responsibility, whether your own team runs it or a partner does. Confirm early which PHP and database versions the current install already uses, since the new host must support the same versions. A same-version move is also not an upgrade: you are relocating a working system, so you should not change the OpenEMR release, the PHP runtime or the database engine during the same window unless you have a separate, tested reason to do so.
A same-version move still needs the controls that a live clinical system requires. Plan the cutover window with clinical and billing staff, decide what happens to data entered on the old server during the parallel run, and confirm that the new host can enforce the HTTPS-only access and web directory restrictions described in the Securing OpenEMR guide before any user or interface reaches it. Keep the old server intact and read-only until you have verified the new one, because that untouched copy is your rollback path.
Which parts of an OpenEMR install move as-is and which need rework
This table compares each part of a source OpenEMR install with its target equivalent on a new server or host, with notes on what copies unchanged and what needs attention. Read it before the cutover plan, since the rows that need rework drive most of the test effort. The target must meet the same version as the source, run PHP 8.3 or later, and use a MySQL- or MariaDB-compatible database.
| Component | Target equivalent | Migration notes |
|---|---|---|
| Code tree | Same OpenEMR version, PHP 8.3 or later | Copy the matching version only. Confirm the target runs PHP 8.3 or later before moving files, since recent releases require it. |
| Database | MySQL- or MariaDB-compatible server | Export and import with matching character sets and collation. Verify the target database version against the release notes before loading data. |
| sites directory and documents | sites/ tree on target storage | Copy with permissions intact, including patient documents and encrypted items. Keep the sqlconf.php and site-specific settings with this tree. |
| sqlconf.php | Rewritten for target database host and credentials | Update host, user and password. Do not carry over credentials that the target database does not hold. |
| Web server configuration | New virtual host or container config | Allow only HTTPS and consider exposing only port 443. Block direct web access to sites/*/documents, as the Securing OpenEMR guide advises. |
| Setup and admin scripts | Removed from the target after install | Confirm setup.php and other admin scripts are absent on the target, since they are not needed after installation. |
| TLS certificates | Reissued or moved to the target host | Certificates tied to the old hostname or IP must be replaced. Plan the renewal date around the cutover window. |
| Cron jobs and scheduled tasks | Recreated on the target host | Scheduled tasks do not copy with the code tree. Recreate them and confirm the schedule once the target is live. |
| LDAP, Active Directory or Google sign-in | Reconfigured for the target host and directory access | Directory endpoints, bind accounts and callback URLs may change. Confirm the sign-in settings with the directory owner before cutover. |
| Interface endpoints and allowlists | Outbound and inbound IPs updated for the new host | Partner systems, labs and clearinghouses may allowlist the old address. Ask each partner to add the new address before cutover. |
Documented export and copy paths for an OpenEMR move
An OpenEMR move at the same version depends on moving two things together: the database and the sites directory. The cards below cover the documented copy paths, the Docker target option, and the export path that suits review or exit planning rather than a full restore.
Database dump and restore
The database holds patient records, billing, scheduling and configuration, so it must be exported and restored with the same schema as the source install. Take the dump while OpenEMR is stopped or in read-only use so the copy is consistent. After restore, confirm that the database user, character set and collation match the source, and that the connection settings in the sites configuration point to the new host. Confirm the exact dump command and restore order against the release you run.
Administration GlobalsSites directory and configuration
The sites directory holds each site's configuration, uploaded documents, and encryption-related files that the database alone does not contain. Copy it with its permissions intact, including the ownership expected by the web server user on the new host. Missing or mismatched documents usually surface only when a chart is opened, so check a sample of patient documents after cutover. Confirm the exact list of items under sites for your release before copying.
Docker as a target host
Docker is a documented deployment option for recent releases, so a move can change the host platform as well as the server. Treat the container as a new runtime: mount the sites data and database connection in the same way the existing install uses them, and do not assume a copy of the old web root will run unchanged. Recent releases require PHP 8.3 or later, so confirm the image tag matches the version you are migrating. Check the Docker instructions in the repository for the current setup steps.
OpenEMR repositoryFHIR Bulk Data for review and exit
FHIR Bulk Data export produces NDJSON files at system, patient or group level, which suits reviewing data or planning an exit to another system. It is not a substitute for a same-version copy of the database and sites directory, because it does not carry the full install, configuration or documents as an operational system. Use it to check record counts and sample content against the new host. Confirm which resources and scopes your release exports before relying on it.
FHIR READMEConfirm the procedure for your release
The documented steps for dumps, sites copies and Docker setup change between releases, so the procedure must be checked against the version you run before cutover. Compare your current version with the release notes and the repository instructions, and note any security fixes in the release that apply. Ask your vendor or partner to confirm the steps in writing against that version. Keep a dated record of which procedure was followed.
OpenEMR releasesSequence for inventory, pilot, parallel run, cutover and decommission
This sequence moves a working OpenEMR install to new hardware or a new host at the same version, with a tested copy, a defined data freeze, a controlled DNS and allowlist cutover, and an old server kept until the rollback window closes. Each step ends with a check you can record before moving on.
Inventory code, database, sites and integrations
Record the exact OpenEMR version and PHP version on the current host, the database engine and version, the location of the sites directory and its size, and every external connection: FHIR apps, patient portal exposure, fax and SMS, lab interfaces, LDAP or Google Sign-In, scheduled jobs and cron tasks, TLS certificates and the backup jobs that run today. Confirm who owns each integration and which vendor must be told about a new IP address. The output is a written inventory signed off by the practice or IT owner, with the version pinned so the target can match it exactly.
Build the target host at the same version
Provision the new server or hosting account in the environment you control, install the same OpenEMR version as the source, and match the PHP and database versions the release notes require. Do not combine the move with an upgrade, because a version change in the same window makes it hard to tell whether a fault came from the move or from the new code. The check is that the application loads on the new host with an empty or placeholder database and that the version shown in the admin area matches the source.
Restore a copy and test with representative data
Take a full database export and a copy of the sites directory from the source, restore them to the target, and point the configuration at the new database. Then test the workflows that matter to clinical and billing staff: login, scheduling, encounter entry, document viewing, statement and claim generation, and any portal or API calls. Use a copy that reflects production volume and record types, and handle it under your HIPAA and privacy controls. The output is a test log listing each workflow, the tester, and the result, with any file permission or path fault fixed on the target and rechecked.
Run a parallel period under a defined data freeze
Agree a freeze point after which the old host stops accepting new clinical or billing entries, and a window during which the new host is kept in sync or staff work on the old host only. Document who can authorize the freeze and how staff are told which system is live. Keep the old host running and reachable to internal users so that discrepancies can be checked against it. The check is a signed freeze notice and a reconciliation of recent records between the two systems before the freeze is lifted.
Cut over DNS and interface allowlists
Lower the DNS TTL in advance so changes propagate quickly, then change the record to the new host at the agreed time. Update the interface allowlists on firewalls, the web server and any partner systems so the new public address is permitted and the old one is not needed, and confirm that only HTTPS on port 443 is open, as the Securing OpenEMR guidance recommends. Confirm that setup.php and other admin scripts are removed and that direct web access to sites/*/documents is blocked on the new host. The output is a cutover record showing the time of the DNS change, the allowlist changes and the first successful clinical login.
Verify production and confirm the rollback point
After cutover, run the same workflow checklist used in testing against production, check that scheduled jobs and backups run on the new host, and confirm that the TLS certificate and the MFA and password settings behave as they did before. Set the rollback point explicitly: the time after which reverting means re-entering data made on the new host. Confirm with the practice owner the backup retention on both hosts, so that a restore to the pre-cutover state remains possible for the agreed period. The check is a signed verification record and a written rollback decision.
Decommission the old host after rollback closes
Keep the old server powered and its backups readable until the rollback window has closed and the owner has accepted the new host in writing. Then remove DNS and firewall entries that still point to it, revoke its service accounts and API tokens, and retain a final, verified copy of the database and sites data under the retention rules your compliance team sets. Wipe or destroy the storage according to your media-disposal procedure and record the date. The output is a decommission record that shows the old host is no longer reachable and the final archive can be restored if needed.
What drives cost and duration of an OpenEMR server move
This table compares the factors that expand or shrink an OpenEMR server move, from data volume and site count to interfaces and authentication changes. Read each row as a question to answer in your own environment before requesting a quote, since most of the effort sits in validation and parallel running rather than the file copy itself.
| Driver | Why it changes cost or effort | How to keep it down |
|---|---|---|
| Sites data volume | Documents, scanned images and the sites folder are copied, checksummed and verified, so large document stores lengthen transfer and validation time. | Confirm the size of sites/ and the database dump before scoping, and archive old documents if policy allows. |
| Number of sites in a multisite install | Each site has its own database content, configuration and file tree, so each one needs its own verification and cutover sign-off. | Scope verification per site and agree which sites move together in one window. |
| Custom modules and forms | Custom code and forms must be checked against the new PHP and OpenEMR version and tested for each clinical workflow. | Inventory customizations before the move and remove unused ones. |
| Interfaces (FHIR apps, HIE, clearinghouses) | Each external connection needs its new address, certificates, allowlist entries and a test transaction, and some partners need advance notice. | List every connection with its owner and contact, and ask each partner for a test window early. |
| Authentication changes (LDAP, Active Directory, Google Sign-In, MFA) | Directory bindings, redirect URIs and MFA enrollment all reference hostnames, so a new host can break sign-in for every user. | Confirm the new login URL with the identity owner before cutover and keep a tested fallback login. |
| Hosting model | A self-managed server, a Docker host or a cloud package each brings different setup, backup and patching work and different owners. | Decide who operates the host before the build so responsibilities are written into the quote. |
| Validation effort | Clinical staff must confirm patient lookups, scheduling, billing and document access on the new system, which is often the longest phase. | Prepare a short written test script per workflow and assign named testers. |
| Parallel run days | Running old and new systems side by side doubles data entry risk and requires clear rules about which system is the record during the overlap. | Agree the number of parallel run days the clinic can staff and a single system of record. |
| One-time versus recurring costs | One-time work covers planning, build, test and cutover. Recurring costs cover hosting, backups, patching and monitoring after go-live. | Ask the quote to separate these lines so the ongoing cost is visible before signing. |
What usually goes wrong in a same-version move and how to prevent it
Most failed same-version moves break on details that were easy to miss during copy and cutover, not on the application itself. The cards below cover the failure modes we see most often, each paired with a prevention step you can check before the old server is switched off.
File ownership and permissions after copy
Copying the web root and sites directory as a different user often leaves files owned by the wrong account, so the web server cannot write to the locations OpenEMR needs at runtime. The symptoms are upload failures, unwritable logs and broken document saves that appear only after cutover. Prevention: preserve ownership and modes during transfer (for example, with archive tools that keep metadata), then confirm the web server user can read and write exactly the paths your install and environment require.
Sites directory copied without documents
Teams often copy the application code and the database but miss the sites/ directory contents, or copy the directory while leaving out the documents subfolder. Patient documents then fail to open even though the chart data appears intact. Prevention: inventory the sites data on the old server, include documents explicitly in the copy plan, and open a sample of scanned or uploaded documents on the new host before you sign off.
Configuration pointing at the old database host
The copied configuration file still references the old database hostname, address or credentials, so the new server either connects to the old database or fails to start. This is easy to miss when the new environment uses a different network name or a container service name. Prevention: review the database connection settings in the configuration file on the new host before first login, and confirm in the logs that every connection resolves to the database you intend to use.
Setup and admin scripts left reachable
A new web server configuration may expose setup.php, other admin scripts or the documents directory directly, because the rules that blocked them on the old host were never recreated. The Securing OpenEMR guide says to remove setup.php and other admin scripts after installation and to block direct web access to sites/*/documents. Prevention: after cutover, request those paths from outside the network and confirm they return denial or not-found responses.
Interface allowlists not updated
Firewall rules, reverse proxy allowlists, VPN ranges and interface restrictions tied to the old server's address keep blocking clinics, partner systems or the new host itself. Users may see a working login page from some networks and timeouts from others. Prevention: build a list of every client, integration and administrative source that reaches OpenEMR, update each rule for the new address before cutover, and test from each source group rather than from one workstation.
DNS caching delaying cutover
Clients and resolvers may keep the old address for longer than planned, so some users reach the retired server while others reach the new one. Writes can then land on two systems at once. Prevention: lower the record's time-to-live well before the planned change, confirm resolution from several networks, and set a rule that the old server stops accepting writes at a defined point.
Rollback path that cannot restore new data
A rollback plan that only restores the old server from an earlier snapshot discards every clinical entry made during the parallel run. Restoring the old database after users have written to the new one can silently lose charts, billing entries and scheduling changes. Prevention: decide in advance whether data written during the parallel run will be re-exported or re-entered, keep the old server in read-only mode while it is still the fallback, and rehearse the rollback steps with a dated backup before cutover.
Re-hardening the new host before patient data arrives
Treat the new host as a new trust boundary, even when the application code is unchanged. The hardening that the old server received over time, or never received, has to be applied again on the new hardware. Start with the network: allow only HTTPS, and consider opening only port 443 to the internet, so that the web server, firewall and any load balancer expose nothing else. Remove setup.php and other admin scripts once the install is complete, and block direct web access to sites/*/documents so that uploaded clinical files can only be reached through the application. Confirm each of these with a request from outside your network, not only from the server's own console.
Next, rebuild the access controls. Enforce multi-factor authentication for clinical and administrative accounts, apply the strong password policy and the upload file white list from the Securing OpenEMR guide, and decide whether stored files need encryption at rest. Restrict the database so that only the OpenEMR application host can connect to it, and remove any default or shared database accounts carried over from the old install. Record who holds each administrator role on the new host, because the new provider's staff may also need access for maintenance, and that access should be written down and time-limited where the platform allows it.
Plan the compliance side before data moves. The HIPAA Security Rule applies to covered entities and to business associates for the electronic protected health information they create, receive, maintain or transmit, so a hosting provider that stores or can reach ePHI may need a business associate contract under 45 CFR 164.314. Confirm with your counsel whether one is required and what it must contain. DeployOpen prepares systems, controls and evidence for your assessments, but it does not issue audit reports, attestations or certifications, and HIPAA has no certification process. Ask your assessor which evidence they expect to see, such as configuration exports and access lists, and collect it from the new host before cutover.
How long does an OpenEMR server move take, and what does it cost?
What does an OpenEMR server move cost overall?
No fixed figure applies, because the cost follows from the written scope, and DeployOpen does not publish a price list. The main cost components are the people doing the work (planning, data transfer, configuration, validation and cutover), the time spent on the old and new hosts in parallel, and any new infrastructure you pay for monthly. Costs rise with the number of sites, the database size, the volume of scanned documents in the sites directory, the number of integrations and the complexity of your access rules. Ask any provider to price planning, rehearsal, cutover and post-move checks as separate line items so you can see what is one-time and what recurs.
How long does an OpenEMR server move take from start to cutover?
The duration depends on how many moving parts the install has and how much rehearsal the team needs before a clinic can accept a downtime window. The biggest variables are the size of the database and sites data, whether the new host is ready and hardened before data arrives, how many interfaces must be re-pointed, and how long your staff need to validate records. A typical plan includes a discovery step, at least one test migration on a copy, a scheduled cutover and a period of monitored operation on the new host. Ask for a timeline in the written scope with a named milestone for each stage.
What must the clinic provide during a server move?
A move needs decisions and people from the clinic as well as technical work. Expect to provide:
- A downtime window agreed in advance, along with a fallback window if the first one slips.
- Staff who can test logins, scheduling, billing, documents and any portal or interface flows against the copy before cutover.
- A named data owner who signs off that the migrated data and access rules are correct.
- Access to the current server, DNS and any cloud or hosting accounts, plus the contacts for interfaces such as labs or clearinghouses.
Agree on these responsibilities in the written scope, since delays in sign-off are a common reason cutover dates move.
Can our own IT team move OpenEMR using the documented steps?
A capable team can work from the documented steps, provided it has someone who can administer Linux, PHP, the database and the web server, and who can test a restored copy before cutover. The work is not only copying files: it includes exporting the database, preserving file ownership and the sites directory, updating the database configuration, restricting network access, setting up HTTPS, correcting DNS and keeping a tested rollback path. Be realistic about the skills and time your team can spare during a clinic's operating hours. If those skills are thin, a fixed-scope engagement can cover planning, the move and verification, and your team keeps control of the decisions.
Is moving OpenEMR to a new server different from upgrading it?
Yes. An upgrade changes the OpenEMR version and often the database schema, the PHP version and the code, and it has its own release notes and checks. A server move keeps the same version and changes where the software and its data run: hardware, operating system, host, network path, database location or Docker layout. Because the version stays the same, the main risks are missing files, broken file ownership, wrong database credentials, exposed admin scripts and interfaces that no longer reach the install. A move and an upgrade can be combined, but doing them together makes testing and rollback harder, so plan them as separate steps unless there is a clear reason to combine them.
What drives the risk and effort of a move up or down?
Risk and effort rise with the amount of data and configuration that must match exactly on the new host, and with how much the clinic depends on the install being available. Lower-effort moves usually have a single site, a current database, a tested backup and a simple network layout. Higher-effort moves involve multiple sites, large document stores, custom modules, external interfaces, portal exposure and strict access rules that must be verified after cutover. Ask any provider to name the drivers in your environment and to state what evidence they will collect to show that data, access and integrations behaved correctly.
What should we ask for in a quote for an OpenEMR move?
Ask for a written scope that lists what is included and excluded, such as discovery, rehearsal migrations, the cutover window, post-move testing, DNS changes, interface checks and the rollback plan. Request the deliverables, including a runbook, a verification checklist and a record of what was changed. Ask who is responsible for each clinic-side task, how long the old server stays available as a rollback path, and whether any recurring costs such as hosting, backups or support are separate. Confirm the security settings as well, including HTTPS-only access, restricted admin scripts and blocked direct access to the documents directory, since these should be part of the move.
How traffic, data and rollback fit during cutover
The cutover starts with a freeze on the old host, followed by a final database export and a copy of the sites directory to the new host. Only after the copy is verified does the DNS record move, and then validation decides between go and rollback. If validation fails, traffic returns to the old host, and any records written on the new host during the window must be reconciled before anyone reopens the old system. Confirm each hand-off in writing before moving to the next step.
Decision path for cutover, with the rollback branch back to the old host.
How DeployOpen scopes and delivers an OpenEMR server move
DeployOpen moves an existing OpenEMR install to new hardware or a new host in your own infrastructure, keeping the current version fixed during the move. The work is scoped in writing first, then built, tested with a rehearsed cutover and handed over with documentation and a rollback path.
How we scope
- Written scope names the source host, target host, OpenEMR version, database and sites data to be moved.
- Scope records the interfaces, DNS names and interface allowlists that must be recreated on the new server.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before any work starts.
How we build
- Build the target environment in your cloud account, data center or air-gapped network with the same OpenEMR version.
- Rehearse the database export, file copy and ownership changes on a non-production copy before cutover day.
- Test logins, scheduling, billing and the patient portal on the new server, then apply the web server allowlist and remove setup scripts.
How we hand over
- Deliver a cutover runbook covering the final sync, DNS change, verification steps and the rollback path.
- Document the new host layout, backup locations, file ownership rules and the decommissioning steps for the old server.
- Walk your administrators through the configuration so they can run the install after the move.
How we support
- Support after cutover can be arranged as a retainer for monitoring, patching and security updates.
- Retainers can also cover planned upgrades to later OpenEMR releases on the new host, scoped separately.
- Confirm with DeployOpen which support hours, response paths and access arrangements apply before signing the scope.

