Why a stalled XAMPP OpenEMR install needs a move to Docker
If your OpenEMR install runs on Windows under XAMPP and can no longer be upgraded to the 8.x line, the way forward is to move the application, its database and its sites directory into a Docker deployment on Linux. Recent OpenEMR releases require PHP 8.3 or later and a MySQL- or MariaDB-compatible database, and a stack built on an older XAMPP bundle is usually where that requirement stops being reachable in place. The move keeps your data and configuration, but it changes the host, the web server, the PHP runtime and the file layout, so it is a migration and not a simple upgrade.
OpenEMR is free, open-source and licensed under the GNU GPL v3.0, so the software itself carries no license fee to plan for. What you pay for is the work around it: confirming the target version, rebuilding the server, moving the data, and proving that the new system behaves like the old one. Because OpenEMR runs inside your own infrastructure, every one of those tasks sits with your team, a partner or both, and the effort depends on the scope agreed in writing before work starts. Ask for that scope to name the database size, the number of sites, any custom forms or modules, and the cutover window.
Before you commit to a date, confirm three things: which OpenEMR version and PHP version your target Docker image uses, whether your current database is in a form the new server accepts, and who owns the decommissioning and backup retention of the Windows host. Check the current release notes on the OpenEMR releases page before you choose the target, because the 8.x line has had security fixes that a stalled install will not receive. A clear answer to those questions turns the move from an open-ended project into a planned one.
What maps cleanly from XAMPP to OpenEMR on Docker and what does not
This table compares each XAMPP component on Windows with its Docker-on-Linux equivalent and flags the items that need manual rework. Read the right-hand column as the work list for the migration, and treat any row marked as rework as something to verify on the new host before cutover.
| Component | XAMPP on Windows | OpenEMR on Docker on Linux | Migration note |
|---|---|---|---|
| Web server | Apache bundled with XAMPP, serving htdocs | Web server inside the OpenEMR container or a host reverse proxy, with TLS on port 443 | Rework: rebuild virtual host and HTTPS-only config; the Securing OpenEMR guide says to allow only HTTPS |
| PHP runtime | PHP bundled with XAMPP, version set by the XAMPP release | PHP version set by the OpenEMR image, which must meet the 8.3 or later requirement for recent releases | Rework: confirm the target OpenEMR release and its PHP needs before copying code |
| PHP extensions | Extensions enabled in the XAMPP php.ini | Extensions compiled into or added to the chosen image | Rework: list every extension OpenEMR and your custom code rely on and confirm each in the image |
| Database | MySQL or MariaDB installed by XAMPP, often on the same machine | MySQL- or MariaDB-compatible database, run as a separate container or service | Maps cleanly if the engine is compatible; confirm version and character set before export |
| OpenEMR code | Folder under htdocs, for example a copy of the OpenEMR tree | Code baked into the image or mounted from the host | Rework: do not copy the htdocs tree into the container as-is; use the release files for your target version |
| sites/ configuration | sites/default holding sqlconf.php, globals and per-site settings | Same sites/ structure, mounted or restored into the new deployment | Rework: keep sqlconf.php database host, user and password pointing to the new database service |
| Document storage | sites/*/documents on the Windows drive | Volume or host path mounted into the container | Rework: copy with ownership the web process can read and write; block direct web access to sites/*/documents |
| File paths | Windows drive letters and backslash paths in settings and scripts | Linux absolute paths and volume mounts | Rework: search configuration, cron entries and custom scripts for C:\ style paths |
| Scheduled tasks | Windows Task Scheduler jobs for backups or reports | Cron jobs on the Linux host or a scheduler container | Rework: recreate each job; confirm which tasks still run and who owns them |
| Windows services | Apache and MySQL started as Windows services by XAMPP | Containers managed by Docker Compose or the host init system | Rework: no direct equivalent; plan restart policies and startup order |
| TLS certificates | Self-signed or purchased certificate configured in XAMPP Apache | Certificate files mounted into the proxy or web container | Rework: obtain a certificate for the new hostname and confirm the chain before cutover |
| Authentication | Local OpenEMR users, and LDAP or Active Directory if configured on the old server | Same OpenEMR user table; LDAP or Active Directory settings must be re-tested on the Linux host | Rework: confirm directory reachability, bind account and certificate trust from the new network; LDAP login was added in version 6.0.0 |
| Custom modules and templates | Files modified in htdocs or sites/ by local staff | Files that must be carried forward into the new release tree | Rework: inventory every change; custom code that breaks on upgrade needs review before reuse |
Documented tools and export paths for the move
OpenEMR documents a small set of routes for getting an XAMPP install into Docker: the database, the sites directory, the project's Docker options, and the FHIR Bulk Data export as a fallback for extracting records. Each route moves a different part of the system, so the cutover plan should name which route carries which data.
Database dump from the existing server
The database holds clinical records, users, audit tables and configuration, so it is the core of the move. Export it from the MySQL or MariaDB server on the Windows host with a consistent dump taken while OpenEMR is in read-only mode. Confirm that the target database engine is compatible with the version your target release supports, and check character set and collation settings before import. Keep the dump file under the same access controls as the source data.
Sites directory copy
The sites directory holds the site configuration, sqlconf.php, uploaded documents and other per-site files that the database does not contain. Copy it as a whole so document references still resolve, and preserve file ownership and permissions on the Linux host. Do not carry over the Windows-specific paths or the XAMPP directory layout. Verify that document storage and any encryption settings match what the target host expects.
Docker deployment options in the repository
The OpenEMR repository and release notes describe Docker deployment options that replace the XAMPP stack on Linux. Confirm the exact image tags, the environment variables for database connection and initial setup, and the volume mappings for the sites directory against the current release notes before you write any compose file. Pin the image to the release you have validated rather than using a floating tag.
OpenEMR releasesFHIR Bulk Data as a fallback
If the database dump or sites copy fails validation, OpenEMR's FHIR Bulk Data export can extract patient data in NDJSON at system, patient or group level. It is an extraction path, not a restore path: it does not rebuild users, configuration or the full audit trail. Use it to produce a verified copy of clinical data for reconciliation, and confirm which resource types and scopes your account can access before relying on it.
FHIR READMENo documented in-place XAMPP importer
The documentation reviewed does not describe an in-place importer that reads a XAMPP installation and converts it for Docker. Plan the move as an export, copy and reinstall, then ask the vendor or a professional support provider to confirm this for your exact version before you commit to a schedule. Treat any undocumented script as untested until you have restored it to a non-production copy.
Sequence for export, copy, verification, parallel run and cutover
This sequence moves a Windows XAMPP OpenEMR install into a Linux Docker host with a consistent database dump, a fixed sites directory, verified application behavior and a documented cutover, so the old server can be retired with recoverable backups in hand.
Inventory the XAMPP installation
Record the OpenEMR version, the PHP and MariaDB or MySQL versions bundled in XAMPP, enabled PHP extensions, every folder under sites, any custom modules or templates, scheduled tasks and Windows services that touch the install, and the interfaces that call it. The administrator or the migration engineer produces this inventory with the practice's clinical and billing leads, who confirm which reports, interfaces and jobs matter. It is done when every item has an owner and a planned disposition: copy, rebuild, retire or confirm with the vendor. Confirm the target OpenEMR release and its PHP requirement before building anything, since recent releases require PHP 8.3 or later.
Build and harden the Linux Docker host
Provision the Linux host, install a container runtime, and deploy OpenEMR using the Docker option the project documents for the target release, with the database service on a separate, supported MySQL- or MariaDB-compatible engine. Apply the host controls from the Securing OpenEMR guide, including allowing only HTTPS and considering exposing only port 443. Keep the new stack off the production network path until verification passes. It is done when a fresh, empty instance starts, serves HTTPS, and passes a documented baseline review of host firewall rules, file permissions and container configuration.
Take a consistent database dump
Stop writes or schedule a quiet window, then export the OpenEMR database from XAMPP with a single consistent dump that includes routines and triggers, and record the database name, character set and the row counts of key tables. Store the dump with a checksum on encrypted storage that the new host can reach. Confirm that the export completed without warnings and that the restored copy on a test database matches the source counts. It is done when a restore to a scratch database succeeds and the checksum matches the file that will be used for cutover.
Copy the sites directory and fix Linux ownership
Copy the entire sites tree, including documents, the sqlconf.php file and any uploaded content, from the Windows server to the Docker host. Windows file metadata does not carry over, so set ownership and permissions so the web server user can read and write the paths OpenEMR needs, and nothing else is writable. Keep the sites documents folder unreachable by direct web request, as the Securing OpenEMR guide advises. It is done when a file listing and checksum comparison show every expected file present, and a test request confirms documents are served only through the application.
Edit sqlconf.php for the new database
Update sqlconf.php on the new host with the new database host, database name, and a dedicated database account with the rights OpenEMR needs and no more. Do not reuse the XAMPP root account. Confirm that the application connects to the restored database, then load the dump into the target database if the import was not already done. Remove setup.php and other setup or admin scripts once the installation is confirmed working, as the Securing OpenEMR guide advises. It is done when the application connects, the database version and table count match the source, and setup.php returns no page.
Verify logins, documents, billing and reports
Run a written test script covering user logins for each role, MFA enrollment if it is in use, patient search, scheduling, encounter and clinical note access, document retrieval, a sample claim or billing report, and the standard reports the practice depends on. Compare results with known values from the XAMPP system for the same patients and periods. Record every defect with an owner. Involve clinical, billing and compliance staff in sign-off. It is done when the test script passes in full or each open item has an accepted workaround and a retest date, and the signed results are filed with the migration record.
Run a parallel period and confirm the interface allowlist
Keep the XAMPP server readable, and agree with the practice how data entered on each system will be reconciled during the parallel period. Compare new entries daily and resolve differences before they grow. Confirm the interface allowlists on the new host and on each external system, including lab, imaging, clearinghouse, portal and fax connections, so that each partner reaches the new address and no unexpected source is accepted. It is done when reconciliation shows no unexplained differences and every interface has a tested inbound and outbound message.
Cut over with DNS and close the old write path
Schedule the cutover with the practice, freeze writes on XAMPP, take a final incremental database and sites copy, apply it to the Docker host, and then point DNS to the new address. Keep the previous DNS record and the old server ready for a documented rollback path. Re-run a short smoke test from user workstations and from each interface. It is done when DNS resolves to the new host, the smoke test passes, and the XAMPP server accepts no further writes.
Decommission Windows and retain verified backups
After the agreed post-cutover period, stop Apache and MySQL under XAMPP, remove scheduled tasks and firewall exceptions, and take a final, verified backup of the Windows server before wiping or repurposing it. Store that backup and the final database dump under the practice's retention rules, and test a restore from the new Docker host's backup job. Document who holds access to the archive and when it will be destroyed. It is done when the old server no longer serves traffic, the archive restore test succeeds, and the retention record is signed.
What drives the cost and duration of the migration
This table lists the factors that move the cost and schedule of a XAMPP to Docker move, with the reason each one matters and how to keep it contained. Read it before requesting a quote, because the items marked as recurring continue after cutover and belong in the ongoing budget as well as the project plan.
| Driver | Why it changes cost or effort | How to keep it down or what to ask for |
|---|---|---|
| Database size and number of sites | Larger databases take longer to export, transfer, import and reconcile. Each site under sites/ adds its own configuration, documents and checks. | Ask the quote to state the database size, the site count and whether each site is validated separately. |
| Scanned documents and uploads | The documents directory is often the largest data set and must be copied with ownership and permissions intact. Volume drives transfer time and storage. | Inventory the documents folder before scoping. Ask whether copy, checksum and spot-check verification are included. |
| Custom modules and templates | Each custom module, form or template has to be checked against the new PHP and OpenEMR version, which can add rework. | List every custom item and its owner. Ask which items the quote covers and which the clinic must retest. |
| LDAP or Active Directory login | Directory settings, certificates and test accounts must be recreated and validated on the Docker host, and users must still exist in OpenEMR. | Confirm whether directory login is in use and ask for directory testing to be listed as a separate line. |
| Interfaces and integrations to repoint | Labs, billing clearinghouses, fax, SMS and third-party apps each point at the old server and need new addresses and allowlists. | Build a full interface list before the quote. Ask who updates the external parties and who tests each link. |
| PHP and extension gaps | The current XAMPP PHP version and its extensions may not match what the target OpenEMR release requires, so extensions and settings need work first. | Record the installed PHP version and extensions. Confirm the target OpenEMR release and its PHP requirement before estimating. |
| Validation depth required by compliance | A clinic compliance team may require documented test cases, sign-off evidence and audit log checks, which expands the test phase. | Agree the validation evidence list in writing. Ask the quote to name each test set and the evidence produced. |
| Length of the parallel run | Running the old and new systems side by side extends the period of duplicate effort and synchronization decisions. | Decide the parallel period and its end criteria up front. Ask how data entered during parallel running is reconciled. |
| People who must sign off | Each approver adds review cycles. Clinical, privacy, security and operations sign-offs often run in sequence. | List every approver and their review window. Ask the quote to show the sign-off points as milestones. |
| Backups and patching after cutover (recurring) | Backups must be rebuilt because the built-in tool is no longer available, and patching follows each OpenEMR security release. Both continue after the project closes. | Ask for the backup design, restore test and patch process as separate line items with their recurring effort stated. |
| Decommissioning the old server (one-time) | Retiring XAMPP requires a retained archive, secure disposal of copies and a documented end date for access. | Ask whether archive retention, media disposal and the closing record are included in the scope. |
Questions buyers ask before moving OpenEMR off XAMPP
What does it cost to move OpenEMR from XAMPP to Docker?
The cost depends on the scope agreed in writing, and no fixed figure applies to every install. The main cost components are the migration plan, the database export and import, the sites directory copy, the configuration changes, verification against your real workflows, and decommissioning. Costs rise with the size of the database, the number of sites and custom modules, the number of integrations that point at the old server, and how much testing your data owners require. Some of the work recurs, such as later patching, while the migration itself is one-time. When you request a quote, ask for each phase as a separate line, the assumptions behind it, what is excluded, and who performs the backup and the old server retirement.
How long does an XAMPP to Docker OpenEMR migration take?
Duration depends on drivers you can measure before work starts: database size, how many sites and documents must move, how many interfaces and users depend on the server, whether custom code exists, and how quickly your data owner and test users can respond. The cutover window is usually the shortest part, while planning, rehearsal and verification take most of the calendar time. Ask for a timeline that shows a rehearsal migration on a copy of production data, a verification period, and the date the Windows server is retired. Any duration you receive should be tied to these drivers and written into the agreed scope.
What does our clinic need to provide for the migration?
The clinic needs to supply several inputs before the work starts, and most delays come from missing ones. Provide a named data owner who signs off the scope, the data to be moved and the verification results. Provide test users who can run real workflows such as scheduling, encounters, billing and patient portal checks. Agree change windows that allow a full backup and a cutover with a rollback path. Give administrative access to the Windows server, including the XAMPP configuration, the MySQL or MariaDB data, the sites directory and the scheduled tasks. Confirm which external systems send data to or read from OpenEMR so that their endpoints can be updated.
Can our in-house IT team do this migration without a partner?
Yes, a capable in-house team can perform this migration if it has Linux and Docker administration skills, database export and import experience, and the time to test. The work that most often exceeds internal capacity is the verification stage, where someone must confirm that patient data, documents, users, billing and interfaces behave as before. Your team should also check the security posture of the new host, since the Securing OpenEMR guide recommends allowing only HTTPS, removing setup.php after installation and blocking direct web access to sites/*/documents. Decide early whether internal staff or an outside partner owns the rehearsal, cutover and sign-off, and document that decision in the project plan.
Which OpenEMR version and PHP requirements must we confirm before we move?
Confirm the target OpenEMR release and its requirements before you choose Docker images or base operating system packages. Recent OpenEMR releases require PHP 8.3 or later and run on a MySQL- or MariaDB-compatible database, and the project offers Docker deployment options. The current release line was OpenEMR 8.4.1, released on September 20, 2026, following 8.4.0 on September 13, 2026 and 8.3.0 on August 18, 2026. Because 8.4.0 and 8.3.0 fixed security vulnerabilities, plan to install the latest patch level you validate. Check the release notes and the official repository for the exact image tags and database version, and confirm how your current version upgrades to the target before cutover.
How are backups and the old XAMPP server handled during the move?
Take a full, tested backup of the database, the sites directory and the configuration before any export, and keep it until the new system has passed verification and a retention period you set. The built-in backup tool no longer serves this purpose, so the backup should be a file-level and database-level copy stored in a location your compliance team approves. Do not decommission the Windows server until the new system has run real workflows, the backups have been restored in a test, and rollback has been rehearsed. When it is retired, remove the copies of patient data from local disks, revoke service accounts, close firewall rules and record the disposal in your change log. Confirm these steps with your compliance lead, since retention periods depend on your policies and applicable law.
Does a business associate contract cover a migration partner?
If a partner will create, receive, maintain or transmit electronic protected health information for a covered entity, confirm with your counsel whether a business associate contract is required under 45 CFR 164.314. That provision describes what such a contract must require, including compliance with the Security Rule, flow-down of the same terms to subcontractors that handle ePHI, and reporting of security incidents to the covered entity. Whether your situation triggers it, and what the contract must contain, is a legal question that your counsel should answer before any patient data leaves your environment. Raise this early so the contract is signed before the data export begins.
What usually goes wrong in a XAMPP to Docker move and how to prevent it
Most failed XAMPP to Docker moves fail in the same few places: files that arrive with the wrong owner, configuration that still points at the old server, and a decommissioning step that runs before anyone has proven the restore. Each risk below has a prevention step you can check before cutover.
File permission and ownership failures
Files copied from a Windows install carry no Linux ownership or permission bits that the web server needs. If the container user cannot read sites/ or write to the documents and logs directories, pages may load but uploads, document storage and sessions fail. Set ownership to the user the container runs as, then confirm that a test upload and a test document view both succeed after startup, not just that the login page loads.
Stale or wrong sqlconf.php
A sqlconf.php copied from XAMPP still names localhost, the old database user and the old password, so the application may connect to a database that is empty, or to none at all. Confirm that the host, database name, user and password in sqlconf.php match the container's database service, and that the old credentials no longer work on the new database. Record the change in your cutover checklist so it is not reverted by a later file copy.
Documents folder missing or exposed
The sites/*/documents folder holds patient documents, and it is easy to leave it out of the copy because it sits deep in the tree and is not part of the database dump. If it is copied but the web server serves it directly, documents become reachable by URL. Copy it with the rest of sites/, verify file counts against the source, and confirm that direct web access to that path is blocked on the new host.
Setup and admin scripts left in place
After the first install, the Securing OpenEMR guide says to remove setup.php and other admin scripts. A migrated tree from an older XAMPP install may still contain them, which gives an attacker a path to reconfigure or reinstall the system. Before go-live, search the new tree for setup and admin scripts, remove or block them, and confirm that the URLs return a denial rather than a page.
Character set and collation mismatches
A database dump created on Windows with one default character set can be imported into a MySQL or MariaDB server with a different default, which can garble names, notes or non-ASCII text and cause comparisons to behave differently. Export with an explicit character set, set the same defaults on the target server, and compare sample records with accented names and free-text notes before accepting the import.
Decommissioning before backups are verified
The Windows server is often shut down or wiped once the new site appears to work, which removes the only known-good copy of the data. Keep the XAMPP server read-only and intact until a restore of the new backup has been tested on a separate host, and confirm that the database and sites folder can be recovered from it. Only then retire the old server, and keep a dated, encrypted copy of the final export for the retention period your policy requires.
How the old and new OpenEMR environments connect during the move
The diagram starts on the XAMPP Windows server inside the clinic network, where the database is exported and the sites directory is copied out through the trust boundary to the Docker Linux host. The new host runs its own database and web container, and users reach it over HTTPS only during a parallel run. Verification happens before DNS cutover, and the old server is decommissioned only after backups are retained.
Data and file hand-offs from the XAMPP server to the Docker host, with the clinic trust boundary.
How to retire the Windows server without losing backup coverage
The Windows server should not be switched off until backups are running on the Docker host and a restore has been tested. The built-in backup tool that the XAMPP install relied on is no longer available on the old path, so nothing protects the clinic's data after cutover unless you rebuild that coverage first. Before decommissioning, take one final archived copy of the database and the sites directory from the Windows server, store it off the old machine, and record its checksum and the date it was taken. Confirm the exact backup approach for the new host against the OpenEMR operations guidance rather than assuming the old procedure carries over.
A backup that has never been restored is not evidence of coverage. Restore the final archive into a separate, non-production container on the Docker host, then check that you can sign in, open a sample of patient charts, view documents stored under the sites directory, and confirm that the database row counts match the source. Run the same restore test on the first scheduled backup taken from the new host. Record who ran each test, what was checked and the result, because these records support your risk assessment and any later review.
Write the rollback path down before the cutover window, not during it. The document should name the condition that triggers rollback, the owner who decides, the steps to point DNS or the clinic's interface allowlists back to the Windows server, and how changes made on the Docker host after cutover would be handled. Keep the final archive and the Windows server's data copies under the clinic's retention rules, restrict access to named roles, and encrypt the archive at rest. Confirm with your compliance lead how long those copies must be kept and when they can be destroyed, since the HIPAA Security Rule requires documented policies and procedures but leaves the specific retention period to the covered entity.
How DeployOpen scopes and delivers an OpenEMR move from XAMPP
DeployOpen treats the move from a Windows XAMPP install to Docker on Linux as a fixed-scope piece of work with written deliverables. The engagement covers the database export, the sites copy, the configuration changes, verification, and the retirement of the old server and its backups.
How we scope
- Inventory the current XAMPP install, including the OpenEMR version, PHP version, database size and every site folder under sites/.
- Agree in writing which sites, modules, scanned documents and interfaces move, and which are retired.
- Record the target Docker host, network allowlists, DNS changes and the rollback point before any work starts.
How we build
- Export the database, copy the sites directory with ownership preserved, and rebuild the target on Linux with Docker.
- Update the database connection settings in sqlconf.php and confirm the web server blocks direct access to sites/*/documents.
- Verify logins, scheduling, billing, document retrieval and audit logging against a checklist agreed during scoping.
How we hand over
- Deliver the runbook covering the cutover steps, the rollback path and the verification results.
- Document the decommissioning plan for the old Windows server, including how its backups are retained or destroyed.
- Walk your administrators through the running Docker stack, its configuration files and the backup jobs that replace the old ones.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Confirm with DeployOpen whether a retainer will cover OpenEMR version upgrades and patching after security releases.
- Ask for a written quote that lists each deliverable, what your team provides and what recurring support is included.

