OpenEMR Ubuntu installer for single-server installs

A practical guide to installing OpenEMR on one Ubuntu 24.04 server with the openemr-devops appliance package, when that footprint fits a practice, and how it compares with Docker for upgrades.

On this page

When a single Ubuntu server is a sound OpenEMR footprint

A small practice or group that wants OpenEMR on hardware it controls, without the effort of building a cluster, can often start with one Ubuntu 24.04 server running the openemr-devops appliance package. The package is designed for a single host, so the web server, PHP runtime, database and the document storage under the OpenEMR sites directory all live on the same machine. That consolidation is acceptable when the user count is modest, one entity or a few closely related clinics share the instance, and the practice has a named person who can patch the operating system, PHP and the database on a regular schedule. It is a poor fit when uptime requirements rule out a single point of failure, when the database needs its own backup or replication path, or when several sites must scale independently.

Before committing, confirm the exact package contents, the supported Ubuntu release and the hardware guidance against the current openemr-devops documentation, since the installer changes between releases. Ask the installer maintainers which services it enables, where it writes the database credentials and whether it leaves setup scripts in place. Recent OpenEMR releases require PHP 8.3 or later and a MySQL- or MariaDB-compatible database, so verify that the appliance's PHP and database versions meet those requirements for the release you plan to run. Also confirm the sizing for your expected concurrent users and document storage growth, because the community does not give one number that fits every practice.

The main risk of a single server is that every failure domain is shared. A kernel update, a full disk filled by scanned documents or a corrupted database affects the whole practice at once. Plan for that before go-live: decide where backups are written, who restores them and how often a restore is tested on a separate machine. Also decide whether the server sits on a private network with a VPN, and whether it has a public address at all. The Docker route packages the same components into containers that are easier to replace, which makes upgrades more predictable, so compare the two routes against your team's skills. A single Ubuntu host is most defensible when the team accepts that its upgrades are manual, documented and scheduled, and when the cost of a longer outage is understood and written into the operating plan.

Which install route fits a single-server OpenEMR

This table compares the Ubuntu appliance installer, the Docker Compose route and the AWS packages on setup effort, OS and database patching ownership, upgrade handling and host rebuilds. Read each row against your own team's skills and change process, and treat the Ubuntu route as the one where your team owns most of the stack. Confirm current package contents with the project before you commit.

FactorUbuntu appliance installerDocker route
Setup effortOne Ubuntu 24.04 server, installed with the openemr-devops appliance package; your team still sets TLS, backups and access rulesOfficial image with environment variables for auto-install; your team builds the host, container runtime and database connection
Runtime requirementsRecent releases need PHP 8.3 or later and a MySQL- or MariaDB-compatible database; confirm the packaged versions matchRecent releases need PHP 8.3 or later and a MySQL- or MariaDB-compatible database; the image pins these for you when you use a dated tag
OS patching ownerYour team, on the single host, including kernel and security updatesYour team for the Docker host; the image layers are updated by pulling a new tag
Database patching ownerYour team, on the same server unless you move the database outYour team, whether the database runs in a container or on a separate service
How upgrades are appliedFollow the upgrade path for the package and release; plan a full backup and a test restore firstChange the image tag to a newer dated release, then restart; roll back by restoring the previous tag and data
Rebuilding the hostRebuild from the installer and restore files and database; document the exact package version usedRecreate containers from the compose file and persistent volumes; the host itself is still your responsibility
Fit for a single practiceSuits a small, single-site install with a team comfortable managing Linux directlySuits teams that already run containers and want version pins and repeatable rebuilds

How the single-server stack fits together

The diagram starts with client browsers, which reach the web server only over HTTPS on port 443. The web server hands requests to the PHP application, which reads and writes the MySQL- or MariaDB-compatible database and the sites directory that holds configuration and patient documents. The setup scripts and admin pages sit inside the same host, so they are the first thing to lock down once the install finishes. Check that nothing outside the host can reach the database port, and that backups leave the host on a separate target, since the host is a single point of failure.

Trust boundary of one host, with the admin scripts and backup path marked.

How to run the Ubuntu 24.04 installer step by step

This sequence takes a single Ubuntu 24.04 server from a bare host to a working OpenEMR login over HTTPS, with a check at each stage so you know the install is sound before you harden it.

  1. Prepare the Ubuntu 24.04 host and DNS

    The engineer responsible for the server (your team or a partner) confirms the host is running Ubuntu 24.04, is fully patched, has a fixed address, and that a DNS record points the practice's chosen hostname at it. Confirm the minimum CPU, memory and disk figures in the openemr-devops repository and with the OpenEMR community before you size the machine, because those requirements are not part of the researched facts for this page. Check the result by resolving the hostname from a workstation on the practice network and confirming it returns the server's address, and by confirming inbound ports 80 and 443 reach the host through any firewall in front of it.

  2. Obtain openemr-devops and review the installer

    Clone the openemr-devops repository from the OpenEMR project on GitHub and check out the branch or tag that matches the OpenEMR release you intend to run, currently the 8.x line. Read the installer's README and the script it runs before executing anything as root, and confirm the exact package names, script paths and command syntax, since these are set by the repository and may change between releases. Check the result by confirming the checked-out revision matches the release you chose and that the script's documented options are the ones you have read.

  3. Run the appliance installer

    Run the appliance installer from the repository as the documented privileged user. The script installs the web server, PHP, the database and OpenEMR on the same host, so a single machine carries all tiers. Record every variable you set, especially database credentials and the admin username, in your password manager rather than in shell history. Check the result by confirming the script exits without errors, that the web server and database services are running, and that the OpenEMR files are present in the web root the installer reports.

  4. Complete the OpenEMR web setup

    Open the server's hostname in a browser and complete the OpenEMR setup flow, which creates the initial site and admin account. Use a strong administrator password that meets the password rules your policy requires, and record the site identifier the installer uses. Once the admin account exists, plan to remove the setup scripts as described in the hardening work that follows. Check the result by logging in with the new administrator account and confirming the main dashboard loads without database or session errors.

  5. Confirm the PHP and database versions

    Verify that the PHP version on the server is 8.3 or later, since recent OpenEMR releases require it, and that the database engine is MySQL or a MariaDB-compatible release. Confirm the exact minimum versions for the release you installed in the OpenEMR release notes, because the requirement can change per release. Check the result by running the PHP version command and the database version query from the server shell, then comparing both outputs against the release notes and recording them in your build record.

  6. Verify HTTPS access and certificate

    Confirm the site is reachable only over HTTPS, with a valid certificate for the hostname, and that plain HTTP is redirected or closed. The Securing OpenEMR guide recommends allowing only HTTPS and considering opening only port 443, so note any port you leave open. Check the result by requesting the site over HTTP and HTTPS from an outside network segment, confirming HTTP does not serve the application, and inspecting the certificate chain and expiry date in a browser or with an TLS client tool.

What to harden on the server after the installer finishes

The installer gets OpenEMR running, but the Securing OpenEMR guidance expects the operator to close the remaining exposure: web access, setup scripts, document storage, sign-in and stored data. Each card below is one control to put in place and verify before the server holds live patient data.

Allow only HTTPS traffic

Serve OpenEMR only over HTTPS and check that plain HTTP requests are refused or redirected. The Securing OpenEMR guide suggests opening only port 443 to the internet, so confirm the host firewall and any cloud security group expose nothing else that the practice does not need. Test from outside the network, not only from the server itself, and record the result for your risk file.

Securing OpenEMR guide

Remove setup and admin scripts

After installation, remove setup.php and other admin scripts from the web root so that no one can re-run setup or change global configuration through the browser. Confirm the removal by requesting those paths from a browser and expecting a not-found response. Keep a documented, access-controlled procedure for the rare times an admin script must return, and remove it again afterwards.

Block direct access to document storage

Patient documents uploaded to OpenEMR are stored under the sites/*/documents path. The guide says to **block direct web access to sites/*/documents**, so a file can only be reached through the application's authenticated controls. Request a document URL in a browser while logged out and confirm it is denied. Include this check in every upgrade test, since a change to the web server configuration can reopen the path.

Require multi-factor authentication

The guide recommends multi-factor authentication for all OpenEMR users, and this matters most for remote and portal-adjacent access. Decide which roles need it, enroll administrators first, and test account recovery before go-live so that a lost device does not lock out the only clinical administrator. Confirm the exact enrollment options in your OpenEMR version's administration settings.

Set a strong password policy

The Administration Globals settings let you set a password length minimum, a rule requiring all 4 character types, reuse prevention for up to 5 prior passwords and expiration. Choose values that match your written policy and your HIPAA risk analysis, then confirm the stored hashing choice (Bcrypt, Argon or SHA512). If you enable directory sign-in through LDAP or Active Directory, remember that the directory validates the password while OpenEMR still needs the user to exist locally.

Administration globals

Restrict uploads and encrypt stored files

Enable the upload file white list so that only expected file types can be stored, and review it against the document types your staff actually use. The guide also suggests the option to encrypt items stored on drive, which protects uploaded files and scanned records if the disk or a backup is copied. Ask your team to confirm how the encryption key is stored, backed up and rotated, since a key kept beside the data gives little protection.

How single-server upgrades differ from the Docker route

On a single appliance host, you own every layer of the upgrade: the operating system, the PHP runtime, the MySQL- or MariaDB-compatible database and the OpenEMR code itself. Each release is applied in place, so the upgrade order, the backup set and the rollback path have to be written down before you start, not improvised during a maintenance window. Recent OpenEMR releases require PHP 8.3 or later, which means a PHP change can be part of the same upgrade as an application change. Confirm the exact PHP and database requirements of your target release in the OpenEMR releases page before you schedule the work.

The Docker route handles this differently. A pinned image tag is replaced as a single unit, with the application and its runtime moving together, and the previous tag stays available to roll back to. The persistent sites volume and the database remain separate, so the data-side steps still need their own backup and restore plan. On the appliance host, nothing is packaged as a unit: rolling back means restoring the code, the PHP packages and the database from backups that match each other. Ask the installer's maintainers, or your partner, to confirm which pieces the appliance package upgrades and which you must manage yourself.

Patch timing matters on both routes. The 8.3.0 and 8.4.0 releases fixed security vulnerabilities in FHIR APIs, the patient portal, billing, the fax and SMS module and the fee sheet, so waiting on a security release leaves those modules exposed for as long as the gap lasts. Set a standing review cadence for OpenEMR security releases, decide in advance who approves an out-of-cycle patch, and test each update on a copy of the production database before it reaches the live server. A single server gives you no second node to fail over to, so the test copy is your main protection against an upgrade that breaks billing or patient portal logins.

Choosing the route by practice size and IT staffing

A single server can fit a solo clinician or a small practice whose data stays on one site and whose staff can tolerate planned maintenance windows. The main question is who runs the server once the installer finishes, because the install is the start of the work, not the end.

  • Named owner: Someone must apply operating system updates, read logs and restore from backup, even if that person is an outside contractor on a retainer.
  • Fit: One site, a modest number of users and no plan to add a second location or a load balancer in the near term.
  • Unpatched risk: A server nobody checks is the most common way small installs fall behind on updates, so the owner needs a standing schedule.
  • Move trigger: If no one can apply updates on a set schedule, a managed cloud package or a Docker host operated by a partner may reduce the day-to-day load. Ask the partner what they patch and how often.

Check before installing that a person is named, reachable and holds written procedures for patching and restores.

What to confirm before you commit to one server

A single Ubuntu server is a reasonable starting point only if the things underneath it hold up. The cards below list what to verify in your own environment before you commit, since the installer package, runtime requirements, backup tooling, certificate handling and host obligations all change independently of each other.

Current installer package contents

Confirm what the openemr-devops appliance package currently ships, which Ubuntu releases it supports, and whether Ubuntu 24.04 is listed as supported in the version you intend to install. Ask for the exact package version, the components it installs (web server, PHP, database, Docker or not), and the files it writes. Read the release notes for the OpenEMR version it targets, not only the installer's own changelog.

Latest release checked
8.4.1
OpenEMR releases

PHP and database versions

Recent OpenEMR releases require PHP 8.3 or later and a MySQL- or MariaDB-compatible database. Check that the appliance's bundled PHP and database packages meet the requirement for the release you pick, and that Ubuntu's repositories still provide them. If the appliance pins older packages, plan the upgrade path before go-live rather than after the first security release.

Backup tooling after the built-in tool

The built-in backup tool is no longer available in current releases, so the single server needs an external plan. Confirm which backup tools the project supports today, how they capture the database and the sites directory together, and where the copies live. Ask who restores them, how often a restore is tested, and whether the backup covers the encryption keys stored with the site.

Securing OpenEMR guide

TLS and certificate approach

Decide how TLS terminates, whether with a certificate from your certificate authority, an automated issuer, or a load balancer in front of the host. Confirm the appliance can use that approach without manual edits that a later package update would overwrite. The securing guide says to allow only HTTPS and to consider opening only port 443, so check that the firewall and web server configuration match that intent.

Host regulatory duties

Installer choice does not change who is responsible for the host. Under the HIPAA Security Rule, covered entities and business associates must safeguard all electronic protected health information they create, receive, maintain or transmit. Confirm with your compliance lead which administrative, physical and technical safeguards apply, which are required and which are addressable, and who signs business associate agreements for the server and its backups. HIPAA has no certification, so evidence comes from your own risk analysis and records.

Security Rule text

What buyers ask before installing OpenEMR on one server

Can a practice install OpenEMR on one Ubuntu server without outside help?

Yes, a practice with a Linux administrator can install OpenEMR on one server, but the install itself is the smallest part of the job. The work that decides whether it holds up is web server and TLS setup, database configuration, removing setup scripts, backups, patching and access control, and each of these needs someone who owns it after go-live. Check that your team can cover those tasks on a schedule, not only the first install. If you cannot name that person, a partner install is worth pricing alongside an in-house plan. The OpenEMR GitHub repository and the Securing OpenEMR guide list the hardening steps your team will need to verify.

What drives the cost of an in-house install compared with a partner install?

The cost has two parts: the people hours to build and harden the server, and the ongoing time to patch, back up and test it. An in-house install spends existing staff time, so the real cost is what those staff stop doing, plus any training they need on OpenEMR, PHP and database administration. A partner install is a fixed-scope engagement, priced from a written scope that lists the systems, hardening controls, backup target, documentation and handover. Ask for the scope items, what is one-time, what recurs (such as a support retainer or upgrade work), and who is responsible for each item. DeployOpen does not publish prices, so request a quote from a written scope.

How long does a single-server OpenEMR install take, and what sets that duration?

The duration depends on what is already in place and how many decisions remain open. A server with a clean Ubuntu 24.04 image, a working DNS name, a certificate path and an agreed backup target moves quickly, while open questions about hosting, identity, data migration or testing extend the timeline. Other drivers include how many modules and users go live at once, whether historical data must be imported, and how much time the practice needs to test clinical and billing workflows before go-live. Ask any provider for a timeline tied to the written scope and to the milestones they will report against, rather than a generic estimate.

What does the practice need to provide before the install starts?

The practice provides the environment and the decisions, and the install cannot proceed far without them. Typical inputs are:

  • Administrative access to the Ubuntu 24.04 server or a cloud account where it will run, with a change window agreed in advance
  • A named owner who approves configuration, access rules and go-live
  • A backup target separate from the server, with retention the practice has approved
  • A DNS name, a public certificate path and the firewall rules that allow only the ports you intend to expose
  • Patient data handling rules, such as whether files are encrypted on disk and who may access the admin scripts

Confirm these items with your team before signing a scope, because gaps here are a common source of delay.

What happens when OpenEMR publishes a security release after the install?

The server owner must apply it, test it and record that it was applied, because the install does not patch itself. Recent OpenEMR security releases fixed vulnerabilities in FHIR APIs, the patient portal, billing, the fax and SMS module and the fee sheet, so an unpatched instance carries exposure in several modules at once. Your process should cover how your team learns of releases from the OpenEMR releases page, how it tests on a staging copy, when it schedules downtime and how it takes a backup first. Confirm whether a support retainer or a partner covers this work, and what response times, if any, are written into it.

When does a single server stop being enough for OpenEMR?

A single server stops being enough when downtime, load or recovery time no longer fits what the practice has agreed to accept. Signals include several sites or entities sharing one instance, staff who cannot wait for a restore after a failed host, peak usage that slows the application, or a need for a second web node with shared sessions. Other triggers are compliance reviews that ask for separate environments, or a need to rebuild the server quickly from code. At that point, look at the Docker, Kubernetes or managed cloud routes and at the OpenEMR multisite guidance. Ask any partner to show how the design changes, what it costs to run, and what must be tested before you move.

Is a single-server install compliant with HIPAA by default?

No install is compliant by default, because HIPAA applies to how the organization runs the system, not only to the software. The HIPAA Security Rule applies to covered entities and business associates for all electronic protected health information they handle, and it has no certification, so no one can hand you a HIPAA certificate for the server. Your team needs a documented risk analysis, access controls, audit logging, backups, encryption decisions and a business associate contract where a vendor handles ePHI. Use the controls in the Securing OpenEMR guide as a starting point, and have counsel or a qualified assessor confirm your obligations.

How DeployOpen scopes, installs and supports a single-server OpenEMR

DeployOpen plans, installs, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, including OpenEMR on a single Ubuntu server. Engagements are fixed-scope, so the scope, deliverables and timeline are agreed in writing before any installation work begins.

How we scope

  • Confirm whether one server fits the practice's user count, data volume, sites and availability needs
  • Record the server, operating system, PHP, database and network assumptions in the written scope
  • Define which hardening, MFA, backup and portal items are inside the engagement and which stay with the client

How we build

  • Install OpenEMR with the openemr-devops appliance package on the agreed Ubuntu 24.04 host
  • Apply the Securing OpenEMR steps, including HTTPS-only access, removing setup scripts and blocking direct access to sites documents
  • Test login, MFA, file upload restrictions and access controls, then document the results and any open findings

How we hand over

  • Deliver an installation record covering versions, configuration choices, server settings and credentials ownership
  • Provide a runbook for backups, restores, patching after security releases and the Docker or upgrade path
  • Walk the client's administrators through the handover and confirm who owns each operational task afterward

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer if the client wants it after handover
  • Review new OpenEMR security releases against the installed version and plan the patch window with the client
  • Re-test hardening settings after changes so the configuration matches the documented baseline

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.