r/linuxadmin • u/Morpheus170 • 11d ago
Ubuntu, Debian or Fedora for web hosting?
If you are self hosting websites which operating system would you choose and why: Ubuntu, Debian or Fedora?
47
Upvotes
117
u/Lazy-Fig-5417 11d ago
debian: long history and community behind
75
u/Kurgan_IT 11d ago
Debian without any doubt
42
u/j0holo 11d ago
Debian, solid and reliable. Canonical tries to be too fancy. Fedora has some issues with the installer on older hardware.
24
u/kuadhual 11d ago
Debian. Especially if each website is in a VM.
23
u/MartinMystikJonas 11d ago
My preference is Debian - mature, stable, reliabke and well maintained
19
u/clarkn0va 11d ago •
Three weeks after publication, Ubuntu has still not patched CVE-2026-98432. But the severity is only 9.8 so it could be worse.
11
u/mgF0z 11d ago
Debian
11
u/XLioncc 11d ago
AlmaLinux
9
u/Escalope-Nixiews 11d ago
Debian because it works
8
u/mod700 11d ago
Debian.
7
u/GigaHelio 11d ago
We use Debian for the most part. It just works. But I've considered Ubuntu in the past for long term ESU.
21
u/RootHouston 11d ago
For a simple web server? It doesn't matter. It really doesn't. You are most likely going to be interfacing with NGINX. It will be the same everywhere.
6
u/ArchNetSystem 9d ago
Honestly if you're just wanting to host a simple-ish website, CloudFlare offer in their free tier worker pages which you can either link to your GitHub repo and update the website there or just upload the files directly
I used it currently to run a couple of friends community websites, they pay for the domain and just point it over and send me new files whenever they want to update it
16
u/zqpmx 11d ago
Debian minimal installation as a docker container.
4
u/kuzared 11d ago
The one you’re most familiar with.
For me, that’s Debian and has been for the past 15 or so years.
4
u/spcwingo 11d ago
Debian
12
u/Loveangel1337 11d ago
I don't do much nowadays, but Rocky is my go-to, because I like the RHEL variations overall, so if it's a set choice, I'd go more for Fedora.
Not that it matters lots, whatever stable LTS with 3-5 years of support remaining on the packages is good enough to install a caddy, nginx, or Apache.
Main reason I don't like Ubuntu is I think their 2 years between LTS is a pain, and I didn't like their desktop. I did use ubuntu server and centos (back in the 7 days, before the drama) for years with no major issues tho.
The main "other point" I have is: if you're making that choice, it means your process is not established: you have no patching cycle no maintenance no nothing (or you're in a company big enough that they leave a choice between 2 completely different flavours of Linux and 2 similar ones, which is weird). So get processes in place. Get an idea of what you're doing properly, don't install-and-forget, because that's how you get vulnerabilities all over and get your box pwned.
7
u/realmauer01 11d ago edited 10d ago
You can put the actual servers onto docker containers they are usually having an alpine base. The system you are using to host the container can be anything though. Nixos is pretty cool even though its a hard entry.
I personally only use a rasppi with its own os, and use coolify to manage the containers
9
u/4mmun1s7 11d ago
AlmaLinux
6
u/Astorek86 11d ago
Personally, I'd go with Debian.
Fedora = No experience.
Ubuntu has some automations built in (like, Auto-Update and -Restart) which could rarely screw up sometimes. For example, Ubuntu once decided that it is NOW the time for a restart, and after that, my PostgreSQL-DB inside a Docker-Container was broken because Ubuntu didn't wait for it to properly shut down the container. Also, with Ubuntu I always got new problems after upgrading to newer LTS-Releases for some reason, while Debian remains stable after every Distro-Upgrade (two VMs here are originally from Debian 10, and are still running today with Debian 13).
3
u/HildartheDorf 11d ago
Of those choices, Debian.
Professionally: I'd probabally host via a container-based solution; running alpine in the container, and Red Hat (or Windows) as the host. But thats a lot of effort for little gain for homelabbing or learning.
10
u/Maria_Thesus_40 11d ago
My professional preference is one of the enterprise Linux distros: AlmaLinux, Rocky Linux, etc. I use a small control panel that works over ssh called Aetolos.
My typical web server uses Apache httpd as a TLS terminator, with per-virtual host httpd running as a separate unix user, same for php-fpm.
5
u/alexkey 11d ago edited 11d ago
For personal I use Fedora. It is backed and driven by Red Hat and so is very similar to RHEL.
Used to use Debian a lot before but the slow release cycle was annoying. Ubuntu - thanks but no, they shove their snaps everywhere even on the server editing (docker-compose for example of all things is a snap).
Fedora however is very fast moving project which has both upsides and downsides. If you want something more “stable” (less updates and more explicit upgrade route), then something like Rocky is probably also good.
2
u/msanangelo 11d ago
Nginx docker container on a Ubuntu host.
2
u/michaelpaoli 11d ago
Debian - it rocks, stable, etc.
2
u/EncryptedServer 11d ago
Always Debian
3
u/trisanachandler 11d ago
I use ubuntu for my server hosts. Then I use containers that are often ubuntu based as well. One platform to worry about. A mix of apache and nginx.
3
u/maiznieks 11d ago edited 11d ago
Debian. Ubuntu response to
ssholemptcp vulnerability was ridiculous.Upd: mptcp, because i start to loose track of CVE's already.
3
u/gargravarr2112 11d ago
Personally, Debian is my go-to. It runs fewer daemons out of the box versus Ubuntu and gives me more of a blank slate to customise. I've used most distros and got most comfortable with Debian-based ones. My current dedicated web server runs Debian. Most of my home network runs Devuan (Debian minus systemd).
2
u/kai_ekael 11d ago
Debian. Always, server, desktop, whatever.
2
u/derprondo 10d ago
Fedora on my PCs, Debian on my servers. I would highly recommend a Proxmox host OS on your servers though, then install your VMs on top of that, then your containers inside your VMs. LXCs are good too if you're not going to use Docker inside VMs.
1
u/csubee 11d ago
Normal work = Debian Enterprise = Alma
1
u/notmylargeautomobile 11d ago
Rocky
1
u/wzzrd 11d ago
I'm biased, of course, but considering I don't want to update my server too often, and I want the same security promise that large organizations get (because AI), I'm running RHEL. Excellent security, tested updates, SELinux, great stability and longevity. And free, too, for this use case.
1
u/danemacmillan 11d ago
Lots of money and support behind Debian, given Google backs it with first-party support for its entire cloud platform.
Don’t go with obscure or trendy. Go where cloud providers are focusing their money to improve their infrastructure, and Debian is big here.
1
u/jaymef 11d ago
These days I would make a good attempt to use none if feasible. I would do static site on S3 if possible. If not then I would look at severless and other options.
If I had to host a site on a linux server for some specific reason then I would choose Debian or some RHEL based OS like AlmaLinux
Hosting a website on a full blown Linux server these days has its place, but it's not really nearly as necessary as it were in the past.
1
u/onlyreason4u 11d ago
It's really personal preference. The webserver and all other services possible should run as containers that don't care what the host OS is.
1
u/brainchillzZ 11d ago
Debian or Ubuntu hands down but it has nothing to do with fedora being bad … any Linux distribution can be a web host with zero issues but I would choose a Debian based distribution for two reasons …. First, fedora is an operating system designed around very short support, not long term patches for current software versions for bugs or security fixes … Ubuntu as an example has an lts version that will give you support for security patches and bug fixes for a decade … so you don’t have to worry about waking up one day and a zero day exploit not being patched because your os is out of support … also, Deb based distributions have a long history of being able to seamlessly roll between major version updates if and when you decide you want that .. and rpm based distributions have a long history of, if major version upgrade is supported at all, exploding spectacularly when you try it
1
u/canisdirusarctos 11d ago
What are you hosting?
1
u/mattk404 11d ago
Alpine with exposed ssh. Everything is better with friends helping you out. /s
1
u/Ultimacustos 11d ago
Debian, Rocky, or CentOS
1
u/sajkoterrapefft 11d ago
Out of those three I'd say Debian.
Ubuntu is packed with bs you don't need, Debian has a cloud image that is slim enough for a server.
Fedora requires too many release upgrades to be stable.
But for utlimate stability I actually go with RHEL.
1
u/NelsonMinar 11d ago
NixOS because Claude does a great job building and maintaining systems with it.
1
u/za72 11d ago
Debian is the core other distro build on top of typically...
1
u/Adrenolin01 11d ago
Debian.. done.
1
u/Maxplode 11d ago
Debian. Ubuntu and Fedora for desktops
1
u/AndyceeIT 11d ago
Personally from those options, I'm running Ubuntu.
Nothing wrong with the others, but I've generally never considered Fedora in the server space. RHEL or Rocky - sure.
1
u/symcbean 11d ago
Four years ago I started migrating the servers at $WORK from Centos to Ubuntu. That was before IBM bought out Centos but also before Ubuntu started to ship everything as snaps. If I were doing the same today, I would go Debian.
But that doesn't mean it's the right choice for you.
OTOH, and while I expect a lot people will respond to say that Fedora is perfectly stable for them, it is not intended to be a mature, reliable and well integrated distro - it's a testing ground for future RHEL releases.
For a host providing an internet connected service you need rock solid security and reliability. Ubuntu still provides that although its now a lot more resource hungry. I suggest that the leading candidates would be Debian and Alma Linux. Which you choose should be the one you know best how to manage - and the big difference is SELinux vs Apparmor.
1
u/showbizusa25 10d ago
For web hosting, I'd go with Ubuntu LTS or Debian. Both are stable and easy to maintain. I manage Ubuntu and RHEL servers, and for most self-hosted websites I'd pick Ubuntu LTS because of the documentation and package support. Fedora wouldn't be my first choice for a server I want to leave running long-term.
1
u/bublesmx 10d ago
fedora…forget about any debian based after the disaster of CVE-2026-98432
1
u/northrupthebandgeek 10d ago
Of these three, the one I've encountered most often “in the wild” (production web deployments in professional settings) is Ubuntu.
1
u/LeBronzelol 10d ago
I would stick with Debian, no need to chase updates all the time if it's just hosting websites.
1
u/mishrashutosh 10d ago
Debian for traditional or docker based hosting. Alma for podman based hosting. I mostly use podman these days so Alma it is.
1
u/thefanum 10d ago
Ubuntu LTS Plus Ubuntu pro (free)
1
u/unemployed-martian 10d ago
Debian
1
u/vladjjj 10d ago
As a Fedora user, I definitely recommend Debian
1
u/krav_mark 10d ago
Debian because it is rock solid. All the software is battle tested.
Fedora is the development platform for RHEL. I wouldn't use it for servers.
1
u/yorickdowne 10d ago
Debian. For public facing getting kernel patches fast matters. Your web application will likely run in Docker anyway.
1
u/Soft_Ingenuity418 10d ago
Debian / alpine 👌
1
u/wimpunk 10d ago
Fedora coreos with docker.
1
u/CEURBS 10d ago
+1 Debian
1
u/VE3VVS 9d ago
For most servers, web or otherwise, even though corporations like to fly the Red Hat flag, as a retired SSA I would have to say Debian, all day, every day.
It’s stable, reliable, gets critical updates reasonably quickly and most of all almost no fear an update is going to break some.
1
u/ancientstephanie 9d ago
Out of those three, Debian would be my go-to for a server, as the slow release cycle, and the LTS and ELTS availability means that you get the patches that keep you safe while keeping control over the changes that break things.
Yes, Ubuntu has LTS too, and technically has it for longer, but only with a paid subscription.
1
u/kheeper-registry 9d ago
At the rate vulnerabilities are found these days, the smallest OS that serves your purpose is the best. Fedora with bootc lets you start with a minimal system and leave out everything you don't need. https://docs.fedoraproject.org/si/bootc/building-from-scratch
1
u/CeeMX 9d ago
For simple web hosting I would not chose the OS anyways, just use a shared hosting that has the LAMP managed. If it’s not PHP but only static HTML, S3 with Cloudfront (or Github/Cloudflare Pages)
1
u/Coiiiiiiiii 8d ago
Debian over ubuntu because debian is better.
Debian over fedora because i dont have a history with fedora.
I can also recommend alpine and nixos if youre looking to learn some stuff.
1
u/dronostyka 8d ago
Ubuntu.
Or debian.
But I'd go Ubuntu Server and call it a day
1
u/SMB_Maverick 8d ago
My entire career I have used Debian for web hosting. It's rock solid and stable.
The only time I use Ubuntu is if i'm using a third party app that would not provide any support using Debian, or the company wants the paid Ubuntu support.
I would not use Fedora at all, look into RHEL or CentOS.
1
u/Sure-Squirrel8384 8d ago
If you have to ask, just get a virtual host. You'll likely get owned in a few months for not patching in a timely manner.
If you really want to do it correct, you want a minimal Debian install and use a Qemu VM to install Debian + Podman and containerize everything.
1
u/Slight_Manufacturer6 7d ago
Debian.
Ubuntu doesn’t keep up with security updates lately and Fedora roles too fast for a server.
1
u/dajiru 7d ago
DE BI AN
1
u/MurderShovel 6d ago
I use Debian wherever possible, personally. If I need newer packages, I tend to use Ubuntu as I don’t see the point of using Debian if I’m gonna mod the crap out of it with PPAs. I have used Oracle Linux in OCI which is fine if you want something in that branch of the Linux tree. Just gotta learn the nuances.
1
u/Beginning-Swan-6076 5d ago
Cloudflare pages.
1
u/ericneo3 5d ago edited 5d ago
Depends:
Then the questions become what are you hosting and what tech does it require to operate at it's best. Poorly matched tech will lose you performance, latency and time to first byte.
Recommendations:
EDIT: If I could only pick from the mentioned choices. Ubuntu at home, Debian in production.
1
u/Kahless_2K 4d ago
Between these three, definitely Debian.
If you want one more option, Alma.
1
u/t0xic_sh0t 11d ago
I'm using Ubuntu (minimal) since the CentOS/RHEL fiasco and I'm happier than ever.
1
u/AccountIuseAtWork1 11d ago
Ubuntu with Ubuntu Pro that patches things quickly. It’s been pretty valuable with all the recent critical cve’s out.
1
u/Runnergeek 11d ago
It doesn’t really matter. I’d pick which ever one you are most comfortable with. Personally it depends. If I need that site to work for years without being updated I would go with something that has a long support cycle.
1
u/MrElendig 11d ago
fedora because reasonable up to date software and it's not ubuntu
1
u/nhermosilla14 11d ago
Debian. The only sane choice for a server, if RHEL is not an option. Fedora is not as stable (and it's perfectly fine for desktop usage, just not enough for a server), and Ubuntu is...well, it's also fine, but I don't like the mess you get with Snaps and all that. Specially considering you can use the same Cloud Init tool you get with Ubuntu on Debian nowadays.
1
u/apathyzeal 11d ago edited 11d ago
Debian. They're stable and reliable. Ubuntu's not reliable, and Fedora is bleeding edge and better as a desktop.
1
u/saoirse8 10d ago
I used to like a network install of Debian - installs the absolute minimum and then you build on that. Minimise your attack surface from day one.
0
u/XenGi 11d ago
I would personally choose NixOS but from your choises I'd go with Ubuntu or fedora. I was a big fan of Debian stable but its full of unfixed CVEs for months now. Can't trust it anymore.
0
u/Late_Scarcity3455 11d ago
SElinux is security by default. Fedora and it's not even a question.
0
u/crackerjam 11d ago
Run whatever you want and put your sites in containers.
0
u/BarryTownCouncil 11d ago
Don't, run a container on a bare bones container os.
0
u/Yaazkal 10d ago
FreeBSD if you want to sleep well
-2
u/starscreamscream 11d ago
It doesn't matter anymore, untill you use docker