AlmaLinux vs Ubuntu Server for Hosting Without cPanel

Skip the control panel and the operating system starts doing real work again. Without cPanel or Plesk to hide the plumbing, every software install, firewall rule, and permission problem lands on your terminal. So the choice between AlmaLinux and Ubuntu Server stops being a checkbox in your VPS order form and becomes the thing that decides how your weekends go.

The short version: Ubuntu Server is the safer pick for most self-managed VPS setups. Its documentation is everywhere, its package ecosystem is huge, and it gets out of your way. AlmaLinux is the better pick when you need RHEL compatibility, long support windows, or strict security defaults. The rest of this guide shows you exactly where the two differ in daily server work so you can pick with confidence.

The 60-second comparison

Area AlmaLinux Ubuntu Server
Family RHEL-compatible (RPM) Debian-based (DEB)
Package manager DNF / YUM APT
Default firewall tool firewalld ufw
Mandatory access control SELinux (enforcing) AppArmor (enforcing)
Support per release About 10 years, free 5 years free LTS, 10 with Ubuntu Pro
Release style Conservative, point releases LTS every 2 years
Web stack philosophy Older, stable versions; extra repos for newer PHP Newer versions at LTS launch, then frozen

Package management: DNF vs APT

This is the difference you will feel every week. On Ubuntu you install things with apt install nginx and update with apt update && apt upgrade. On AlmaLinux it is dnf install nginx and dnf upgrade. Both are simple, but the ecosystems around them are not equal.

Ubuntu ships with enormous default repositories, and its long-term releases freeze package versions at launch. That means Ubuntu 24.04 gives you newer PHP and Nginx than AlmaLinux 9 out of the box, and it keeps them stable for the life of the release with security backports.

AlmaLinux takes the RHEL approach: base repositories carry older, heavily tested versions. The official PHP on AlmaLinux 9 is 8.0. If you want PHP 8.2 or 8.3 for your WordPress stack, you enable an extra repository, typically Remi’s repository, and use DNF module streams to switch versions. That sounds fiddly the first time, but module streams are predictable once you learn them: dnf module reset php && dnf module enable php:remi-8.3.

Ubuntu has its own equivalent for newer PHP: the widely used Ondřej Surý PPA (add-apt-repository ppa:ondrej/php). Both systems can run modern PHP; the paths just look different. If your tutorials and Stack Overflow answers assume apt, Ubuntu saves you translation time. If your workplace runs RHEL, AlmaLinux keeps your habits transferable.

SELinux vs AppArmor: the permission wall you will hit

This is the number one cause of “it works on Ubuntu but not on AlmaLinux” tickets. AlmaLinux ships SELinux in enforcing mode. AppArmor on Ubuntu is also enforcing, but its default profiles are far less likely to block a web server.

On AlmaLinux, SELinux labels every file and process. Move your web root to a custom directory and Nginx will get permission denied until you set the right context with semanage fcontext and restorecon. It is not broken; it is doing its job. But it is the most common stumbling block for admins coming from Debian-based systems.

The pragmatic advice: do not disable SELinux to make the problem go away. Set it to permissive while you test (setenforce 0), watch the audit log for denials, fix the contexts, and put it back to enforcing. Once configured, SELinux is one of the strongest reasons to choose AlmaLinux, especially for servers facing the open internet.

On Ubuntu, AppArmor profiles cover specific programs rather than the whole filesystem, so Nginx serving from a non-default path usually just works. You trade some strictness for fewer surprises. For a solo admin hosting their own sites, that trade is often worth it.

Firewall: firewalld vs UFW

Ubuntu ships UFW, which is about as friendly as a firewall gets: ufw allow ‘Nginx Full’ and ufw enable and you are done. Rules are simple, output is readable, and most hosting tutorials use it.

AlmaLinux ships firewalld, which is more powerful and more verbose. You work with zones and services: firewall-cmd –permanent –add-service=http –add-service=https followed by firewall-cmd –reload. It supports rich rules, port forwarding, and zone-based trust levels that UFW does not offer natively. If your VPS only serves a website and SSH, UFW is enough. If you are segmenting traffic between interfaces, firewalld earns its complexity.

Web stack versions and repos

For a typical self-managed LEMP stack, both distros will get you there, but the maintenance story differs.

  • AlmaLinux 9: Nginx and MariaDB from AppStream are stable but not new. Newer PHP comes from the Remi repository. MariaDB upgrades go through DNF modules. Expect to learn about module streams on day one.
  • Ubuntu 24.04 LTS: Nginx and a recent PHP ship in the default repos. Newer PHP versions come from a PPA. Upgrades between LTS releases happen every two years with do-release-upgrade, which is well documented but still the most delicate operation on either distro.

One practical note: AlmaLinux’s 10-year support window means you can deploy AlmaLinux 9 and forget about a major upgrade until 2032. Ubuntu LTS gives you five years free, and ten if you attach Ubuntu Pro (free for up to five machines for personal use, with paid tiers for business). If you hate major version upgrades, AlmaLinux’s longer free window is a real advantage.

Docker and modern tooling

Both run Docker and Docker Compose without drama. Docker’s official install docs cover both, and the experience is nearly identical once the daemon is running. The small edge goes to Ubuntu: more tutorials, more third-party install scripts, and earlier support for newer kernel features. If your hosting plan is “Docker Compose and forget,” the OS matters less than your compose files.

Community, docs, and the tutorial gap

This is where Ubuntu wins decisively for the self-hoster. Search for any server problem and you will find five Ubuntu answers for every AlmaLinux one. Most WordPress-on-VPS tutorials, most Nginx config guides, and most one-liner fixes assume apt and UFW. The AlmaLinux and RHEL documentation is excellent but written for professionals, which is less forgiving when you are troubleshooting at midnight.

So which one should you install?

Choose Ubuntu Server if you are hosting your own sites or client sites on a VPS, you learn from blog tutorials, and you want the least friction. The five-year LTS window with optional Ubuntu Pro is plenty for most projects, and the larger community means faster answers.

Choose AlmaLinux if you need RHEL binary compatibility, you work in an environment with compliance requirements, your employer runs RHEL or CentOS history, or you want a decade of free updates without major upgrades. Accept that SELinux and DNF module streams are part of the learning curve, and treat that curve as an investment rather than a tax.

Either way, the no-panel discipline is the same: keep the OS patched, run only the services you need, back up off the server, and document the commands you ran. Do that, and the distro is a preference, not a risk.

Ditulis oleh

Firdaus Safari Putra

Founder, PT FirKaizen Digital Solutions

Firdaus Safari Putra adalah founder PT FirKaizen Digital Solutions. Ia membangun dan mengoperasikan infrastruktur server di balik panduan ini, dan menulis berdasarkan apa yang benar-benar ia jalankan, uji, dan ukur — bukan teori.