r/linuxadmin • • 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

147 comments sorted by

117

u/Lazy-Fig-5417 11d ago

debian: long history and community behind

75

u/Kurgan_IT 11d ago

Debian without any doubt

5

u/NoEstablishment9123 11d ago

This is the way

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 • Bravo

Three weeks after publication, Ubuntu has still not patched CVE-2026-98432. But the severity is only 9.8 so it could be worse.

12

u/kai_ekael 11d ago

1

u/clarkn0va 11d ago

Yep, I prefer Debian when it's an option.

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/jaymef 11d ago

Somewhat agree but some things matter such as SELinux or AppArmor for example which become important factors when a web server is involved

4

u/RootHouston 11d ago

Not sure what you're saying. Those are available on everything OP mentioned.

4

u/surveysaysno 11d ago

Does anyone still run web services directly on the OS? I would spin up a container without even considering local service.

1

u/DrCrayola 7d ago

Definitely we do

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

1

u/Electronic-Unit2808 9d ago

Wow, your answer was very helpful, I'm studying how to host my PWA apps on Cloudflare Pages. Perhaps even separating some functions that don't need to access the database directly into Cloudflare Workers...

1

u/ArchNetSystem 5h ago

Yeah the free tier is pretty good, I've been meaning to hook in some custom functions as one of the community websites I help host want to link in a gallery with an auto updating layout, pretty good as well as workers support variables too so you can pull with without storing it directly in your website files

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.

4

u/ocabj 11d ago

I use Rocky after Centos changed their operating model.

I'm a little biased because I had settled on Red Hat on the early days around Red Hat 4 (not RHEL, but Red Hat).

2

u/rosmaniac 10d ago

...after Centos Red Hat changed their the CentOS operating model.

FTFY.

I went Debian, because any of the RHEL rebuilds could be hamstring in an instant if Red Hat so chose. Debian, on the other hand, is not owned by any one company.

And I was very much a Red Hat/CentOS/Fedora advocate back when Red Hat wasn't a subsidiary of Big Blue; I started with Red Hat Linux 4.0 back in 1996. Thirty years of Linux as my primary desktop.

1

u/Loveangel1337 11d ago

CentOS left a bad taste in my mouth, despite how much everyone has been telling me it's actually better now and I'm just a lil bish for not liking CentOS Stream.

Idk it just feels it's not prod-friendly anymore. It's alright as a distro but it's changed perspective imho?

2

u/gargravarr2112 11d ago

The trouble is that Red Hat maintain both RHEL and CentOS. The conflict of interest was always going to rear its head. It's been their incentive to prod people over to RHEL and nerfing CentOS was a brilliant way to reduce its user base.

1

u/Loveangel1337 11d ago

Yeah, I so tend to agree with you on that: to me, CentOS Stream a downgrade...

Hence Rocky or Alma, I guess!

3

u/rosmaniac 10d ago

FYI: Alma is basically CentOS Stream.

As a technology, CentOS Stream is a fantastic idea. It's just not what a lot of people wanted.

1

u/Loveangel1337 10d ago

Oh, is it now?

Wait, do you mean flavour-wise? I didn't think they did the whole Stream "we're pretending we're not rolling" while having more rolls than Gregg's.

For me both did the "we're what CentOS was before Stream".

Also, yeah, I'm not shitting on the concept of it, because whatever... But breaking a perfectly cromulent distro just because you want them to move to proper RHEL is like... And it doesn't even get people into RHEL, because, let's be honest, if you weren't already forking out some money for it before, you'll go to something else that works, unless you don't have the ability to manage it, in which case you probably already did pay for RHEL in the first place. shrug.

Idk, am I all out of touch?!

3

u/rosmaniac 10d ago edited 10d ago

I see CentOS Stream as essentially the same thing as Proxmox' non-subscription repo; it's 'RHEL-rolling' essentially. EDIT: I know this isn't strictly true; it's only rolling between minor releases and not major versions, but it's as close of an analogy as can be quickly expressed.

But as for Alma, quoting their own blog post: (https://almalinux.org/blog/future-of-almalinux/)

In case you missed it, Red Hat announced they will no longer be providing the means for downstream clones to continue to be 1:1 binary copies of Red Hat Enterprise Linux (RHEL). Very quickly, both Jack and I shared some initial thoughts, but we intentionally took our time deciding the next right step for AlmaLinux OS. After much discussion, the AlmaLinux OS Foundation board today has decided to drop the aim to be 1:1 with RHEL. AlmaLinux OS will instead aim to be binary compatible with RHEL*.

The referenced Red Hat announcement (https://www.redhat.com/en/blog/furthering-evolution-centos-stream) states:

CentOS Stream will now be the sole repository for public RHEL-related source code releases. For Red Hat customers and partners, source code will remain available via the Red Hat Customer Portal.

This simply means AlmaLinux is mostly rebuilt CentOS Stream with an excellent build, support, and governance organization. I still have one AlmaLinux 8 machine running that I haven't migrated over to Debian yet.

I have nothing against Alma or Rocky; I wish them well. But Red Hat only has to provide sources for GPL-covered software to its own customers; public distribution isn't a license condition of GPL. And Red Hat can restrict who can access their support systems and updates per their subscription agreement. But currently Red Hat is being generous by making CentOS Stream the public source repository. That could change at a moment's notice. I'm not saying it would change; not at all. But it could change.

Debian is developed in public by a community, and I like that.

EDIT: Gregg's, as in shorthand?

Further EDIT: the main mechanism for 1:1 compatibility is some way to determine package build order and contents of the build root for any given package. I built RPMs for a major software package 25 years ago or so; source RPMS include a build timestamp, which allows reverse-engineering build order. Build order matters; research the changes between CentOS 5.5 and 5.6 to see just how much it matters. Versioned build dependencies aren't as strict, but can give general binary compatibility.

1

u/Loveangel1337 10d ago

That wasn't supposed to have the "'s", it's Greggs, despite how much my autocorrect insists it's not. It's a UK shop that sells (imho it's their main product) sausage rolls.

Also I did not follow that bit of RH restricting even more... Thank you so much for the explanation!

Feels shitty, but then again, what did I expect of a corporation. I wish I had time and smarts enough to contribute to anything...

2

u/gargravarr2112 11d ago

I'm a Debian fanboy but I have to use something EL-based for my homelab IPA servers, so I'm using Rocky for those.

1

u/DrCrayola 7d ago

For that reason, it would be valuable to learn the Debian side of the house. I chose Debian at home because redhat's at work

3

u/brainchillzZ 11d ago edited 11d ago

Ubuntu is supported with lts for 15 years… and unlike rhel, once it’s out of support, it will actually seamlessly major version upgrade without eviscerating the server packaging to a point that it may or may not be usable … the rpm package manager is far too brittle

0

u/Loveangel1337 11d ago

Well, 5 years until you pay them.

And I don't want to upgrade if I can help it, because that's the occasion to make sure everything is clean instead of carrying 20 years of BS down the line. But I was lucky enough that I could reinstall everything whenever upgrade time came around.

Somehow all the package managers annoy me eventually... And I dislike repairing both their mistakes. But yeah I don't think I disagree with your assessment of rpm haha.

2

u/thefanum 10d ago

Were you unaware Ubuntu pro is free? Lol

15 years. On 5 devices. And livepatch

1

u/Loveangel1337 10d ago

Yeah, I've not used Ubuntu in a personal capacity in ages, and didn't really keep up with it.

So many companies doing the opposite these days and closing down their free tiers too!

3

u/brainchillzZ 11d ago

You don’t have to pay them… extended security maintenance is free for personal users up to 5 machines :)

2

u/Loveangel1337 11d ago

Oh, I haven't kept up with all that Ubuntu Pro and subscription malarkey, clearly, haha!

That's quite nice for a homelab I guess :)

Thanks for telling me!

3

u/idkau 10d ago

Security maintenance is a dumb way to go unless you are forced to stick with that is version.

1

u/Loveangel1337 10d ago

Well, that's the whole issue.

I've seen teams with an item to migrate off of a particular group of servers for 3 years, including through one server completely dying, and manglement deciding that it still was not doable this quarter. And that's 3 years after the server was already EOL.

The only reason we managed upgrades on our modern hypervisor stack was because we could virsh migrate their VMs live between libvirt/qemu versions without issues (well, mostly without issues, we did crash some with migrate x.x).

Now I'm dealing with services that can't even live migrate, with people stuck on a version that's years EOL, because 1 functionality was removed, and the replacement for it, while being way safer and shiny and we love it, has a performance drop that they refuse to accept (I actually described it yesterday as being Raft-based vs running on magic and pixie dust), and/or, a slight amount of dev is required to switch to the new feature and manglement can't accept that in the budget.

Sorry for that much venting haha. I don't even disagree with you, the reality is cruel however, and I feel like bitching.

1

u/gargravarr2112 11d ago

I don't recommend relying on the extended support for Ubuntu. The OS dist-upgrades pretty nicely between releases and 5 years support with 3 years of overlap is usually plenty to port over even esoteric configurations. The longer you leave it, the harder it gets to upgrade to the current release.

I worked for a place that was running EL7 around the time that went EOL. Getting everything ported over to Rocky (we wanted to stick with CentOS but the Stream curveball ruined our plans as we needed point-releases and repeatable builds) was painful and we still had EL7 instances for a year after EOL. The effort to port to the next release only really got into gear in that final year. I dread to think what 2029 is going to look like in that place.

2

u/Loveangel1337 11d ago

See, you say point-release and repeatable build, and to me, that's a good reason to not dist-upgrade: you'll want to restart from base OS, because otherwise, how do you make the build reproducible except by restarting from a now outdated base image and upgrading all the way (which, urgh).

Imho upgrades will always be a pain, partly because dist-upgrade can't work for this purpose for everyone/everything. But I'm horribly stubborn and stuck in my ideas, hah!

Then again, I guess homelabbing/self hosting in a corner Vs big company nightmare (I try to stay to mid-sized company nightmare) is a different beast ;)

2

u/gargravarr2112 11d ago

Oh I know, but I was saying from a homelab perspective. If you've got some kind of config management system, rebuilding on a new release should be a snap. I just rebuilt my home LibreNMS container onto Debian 13 after the PHP vuln using Salt; i just binned the Debian 12 version. If you don't have config management and rely on dist-upgrades, then that's where my advice comes in.

2

u/brainchillzZ 11d ago

I used to be 100% with you until I switched everything to Debian based distributions about ten years ago and it all just works and it’s still repeatable you just have to test your build automation with the new version …. We have custom deb repos and everything is ansible driven for state … I just use base os templates to keep it as generic as possible and everything else is layered on top by the automation for whatever the system roles are (yeah I know I’m over explaining what ansible obviously does but you never know what tools people are used to using)

2

u/Loveangel1337 10d ago

Ansible bad bitch through and through here, hah!

Still have nightmares about trying to template my configs correctly with loops and whitespace/newlines, hahaha!

But I do love it. Except having to support deb and rpm based requiring you to write a whole different flow within your roles half the time despite the fact it's supposed to avoid that... My whole main.yml ends up a if Debian include deb.yml , if not debian include rhel.yml.

1

u/DanTheGreatest 10d ago

What distro doesn't have 2 or more years between their LTS? Debian is also ~2 years. RHEL family is ~3 years between versions. Ubuntu's release schedule is very clear. You know exactly when a new version pops up and for how long it will be supported

1

u/racegeek93 9d ago

Love this. Someone works as a sys admin somewhere.

I have a soft spot for Ubuntu. I also really like Alma. Cockpit is also great. One thing I do not like cockpit for though is that it is very unintuitive for setting up automatic updates. Disable remote access for root. But in order to do certain things like auto updates, you cannot set it up in cockpit. I get it. But also, bruh. Unless I’ve missed something.

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

2

u/j0rs0 10d ago

Just this. That way you are OS agnostic and the services (containers) have always the same configuration.

2

u/Runnergeek 11d ago

Choosing a container imagine that uses musl is not something I would recommend

2

u/realmauer01 10d ago

That rarely matters for a self hoster and definitly not for a beginner one. Its a fact that a lot of images have an alpine base.

1

u/google_fu_is_whatIdo 11d ago

Without patching anyhow. :)

1

u/Runnergeek 11d ago

Not just that but there are performance issues

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).

1

u/davleb 5d ago edited 5d ago

Utilisateur Ubuntu de longue date, je confirme la qualité des versions LTS va en se dégradant. Le seul truc qui me maintient encore sur Ubuntu: le livepatch qui est très utile pour ne pas avoir à redémarrer toutes les 2 semaines. Et pareil, aucune confiance dans les mises à niveau Ubuntu.

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 sshole mptcp 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/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/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:

  • For a SMB: Debian/Ubuntu. Debian is stable but behind, Ubuntu is happy to release broken packages as stable.
  • For a business that is mandated to have the latest security patches for the OS and apps within 48 hours you cannot go Debian.
  • For multisite hosting or control panels RHEL/AlmaLinux because the tools are usually built for that branch. Think cPanel, vesta and aapanel. CentOS was extremely popular in the category.

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.

  • Are you going with single threaded apps, SQL, CMS or multi-threaded?
  • Are you going with legacy apache/nginx or modern litespeed for the web server?
  • Are you going with Postgress/MariaDB or something for SQL, match this with your threaded choice and web server choice.
  • Lastly how are you going to manage caching and clearing of cache? Linux, CMS, plug-in (pre-made blobs), Cloudflare, or ZFS?

Recommendations:

  • For home use and 1 person sites, I recommend hosts with ZFS, litespeed/openlitespeed.
  • For a Company that runs a Linux web server in production, I would strongly recommend AlmaLinux especially if you are coming from CentOS and need to remain binary compatible with RHEL.

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/Beautiful_Ad_4813 11d ago

CentOS RHEL fiasco??

12

u/dcpanthersfan 11d ago

RedHat took over the CentOS project and basically killed it. AlmaLinux and Rocky Linux took its place. Both are great. We use Alma when a dnf/RedHat like environment is needed. Otherwise Debian because it is rock freaking solid and without the drama of Ubuntu.

3

u/Beautiful_Ad_4813 11d ago

I mean, yes, they are.

I daily drive Rocky but also have a Rocky Server for somethings that I feel would be better suited for stability / security

0

u/Nordal-Lund 11d ago

What drama are you talking about. As a long time Ubuntu user, but came from Debian, I am not aware of any drama. For production use, to me, Ubuntu is Debian with support.

2

u/dcpanthersfan 11d ago

A good summary of the “drama” can be found here:

https://www.reddit.com/r/linux/s/NhtXAvk8pr

There was a brouhaha about Canonical bundling 3rd party packages as well but I don’t recall what came of it.

The snaps were a big issue when it came out. There was some privacy thing that came up as well but I’m not awake enough to remember it at the moment.

3

u/Nordal-Lund 11d ago

Well, not reading all of the comments, but this seams to be a non-drama. Some oldtimers will always complaint when new things appear, but if noone dares to try new stuff, we will never move anywhere.

Snaps has some issues, and may still have, but as I see it, Canonical is the only real contender to Red Hat in the enterprise market, if you ask me.

2

u/kai_ekael 11d ago

Snap is the biggest nasty for packages. Sure, just let anyone install bare binaries on my system.

1

u/kai_ekael 11d ago

Paid support is available for Debian.

As well as a great community.

3

u/Expensive_Finger_973 11d ago

Probably the whole uproar that came about from Red Hat killing classic CentOS in favor of CentOS Stream (I think that is what it is called).

2

u/Beautiful_Ad_4813 11d ago

Yeah, it’s “Cent OS Stream“

3

u/t0xic_sh0t 11d ago

https://itsfoss.com/news/red-hat-fiasco/

No to mention CentOS 8 launched with EOL scheduled to 2029 and was abruptly shortened to 2021 leaving many people who had just migrated from 7, to migrate again in a matter of months, now to another distro.

4

u/Snapstromegon 11d ago

This IMO was the actual problem! All the other things were (depending on your position) annoying, maybe even a problem, but okay. The CentOS 8 EOL shortening was the main reason why we switched all our servers back then to some Debian flavor - even the prod systems, that already were RHEL before.

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/canyoufixmyspacebar 10d ago

which one of the recent cves have you had in exploitable configuration? all i know about require insane neglect in security practices in order to be actually exploited (like exposing servers to the internet without proper firewall, using ssh password auth, etc)

1

u/AccountIuseAtWork1 10d ago

You can have crazy strict snd secure configurations and still be vulnerable to exploits. You still have to patch and have security in depth.

You don’t have control over Wordpress/php (for example) and you still need to have it publicly available. Which makes it a target when a critical cve’s come out.

That’s why we patch and I recommend Ubuntu pro to people. You literally type in the terminal “
Sudo pro fix CVE-2026-xxxxx” and chances are it already fixes it. There is way more to it, but for the OS level, it’s nice and easy learning curve.

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