5

I have been using Ubuntu for more than two years, and as I check more and more web servers I'm discovering that they are using CentOS.

Is there any particular reason why this is the case?

  • 5
    I really doubt that most Linux servers are running CentOS. Maybe most of the servers you've checked, but not generally. – joschi Apr 02 '10 at 19:14
  • It must depend on where you look. I see more Debian than Centos on the ones I've checked. Fairly small sampling though. – John Gardeniers Apr 03 '10 at 00:01

7 Answers7

14

CentOS is line-for-line the exact same code as Red Hat Enterprise Linux, except RHEL costs $$ to purchase and CentOS is free. Basically, you get one of the most widely respected enterprise-class operating systems with security updates for free, sans a support contract.

MDMarra
  • 101,023
  • 3
    RHEL does not cost money. Support for RHEL does. – dyasny Apr 02 '10 at 13:55
  • Updates are considered support. – David Rickman Apr 02 '10 at 14:01
  • Support in this case means a support contract - which is the only difference between CentOS and RHEL – MDMarra Apr 02 '10 at 15:32
  • 3
    @dynasty - without a RHEL support contract, you don't get updates. This effectively means you can't use RHEL without making a purchase unless you have no desire for a secure operating system. – MDMarra Apr 02 '10 at 15:35
  • Updates are available as source files, you can simply compile them and install RHN is a service, same as support. RHEL is a product. The product is free and opensource, services are not – dyasny Apr 02 '10 at 16:20
  • 1
    @dynasty - Fair enough, I guess if you only have one server to manage this approach is at least semi-feasible. I tend not to even consider this an actual option though due partly to the fact that I come from an environment with many dozen servers, and the availability of CentOS makes this approach unnecessary. – MDMarra Apr 02 '10 at 16:32
  • The downside to CentOS is that sometimes security updates lag behind the RHEL update. So a CentOS server may have longer exposure to some vulnerabilities. But that's part of evaluating the "cost" and "risks" of a solution. RHEL has known cost and lower risks where CentOS costs less but may carry more risk. Also OS updates definitely have a lag. RHEL 5.5 was just released this past week. It will probably be a few more weeks before you see CentOS 5.5. Some organizations run a mix of RHEL and CentOS. Where RHEL is being used in mission critical roles for support and less exposure to risk. – 3dinfluence Apr 02 '10 at 18:04
  • MarkM: do you seriously think that your "dozen servers" is a serious claim when it comes to RHEL setups with 5 figure numbers of hosts, and even more VMs on top of them? With RHEL you get much more than support and updates through designated channels. If you lack a feature, and it is important for your business, you as a customer can request it, and chances are you will get it. You can also get intermediate updates and hotfixes, large scale solutions and most important - predictability. If those are of no matter, CentOS is the OS for you, but as companies grow, they usually move to RHEL. – dyasny Apr 02 '10 at 18:19
  • 5
    @dyasny if you're going to voice your opinion on this you should probably disclose that you work for RedHat. – 3dinfluence Apr 02 '10 at 18:33
  • 1
    @dynasty - what the hell are you talking about? You suggested that it's a perfectly acceptable scenerio to use RHEL without support and compile patches yourself. I said that this approach might work for a single server, but not for many. Also - I said many dozen, not one dozen. And we do license RHEL for some, and use CentOS for others, so if you really do work for RHEL you might want to stop being such a douchebag - I am a paying customer and you're poorly representing your product. I doubt your boss would approve of the tone of your posts. – MDMarra Apr 02 '10 at 21:32
  • 3
    @MarkM by getting riled up and making those sorts of comments like your last sentence makes you sound the same. It's the internet... relax! :) – Mark Henderson Apr 02 '10 at 22:07
  • @Farseeker - Touche :) The problem is that dynasty is claiming that what sets RHEL so far apart from CentOS is the support, and in his linkedin it says he's level 4 support. If that's the kind of guy that I'm paying to be supported by, then I'm feeling that it's money a little wasted right now. But you're right, my personal feelings don't matter to the OP asking the question – MDMarra Apr 02 '10 at 22:15
  • guys, my opinions on forums are my opinions. I don't do PR for my company, and these opinions were there long before I joined it. – dyasny Apr 03 '10 at 09:00
  • @dynasty - Ah, but if you offer opinion on the products of a company you work for an have a link in your profile that says you work for them, then intentional or not, your words reflect on your company's image. I'm sure your answers get more respect in RHEL threads because of this. The downside is that when you speak condescendingly to people, this will reflect on your company as well. I realize that you don't do PR, but you could watch your words a little more carefully when speaking about RHEL. Just like I would if a conversation came up about Higher Ed – MDMarra Apr 03 '10 at 12:53
8

While many GNU/Linux based servers do use CentOS, many still use other options, professionally I use Debian for workstations and servers. Other suitable options would be Ubuntu Server (LTS), ArchLinux, or Slackware.

One reason that my employer didn't go with CentOS, was it wasn't around then, and White Box Linux which was available appeared based on a small group of contributors. At the time Ubuntu didn't have a server edition as far as I recall, and hadn't launched their Long-Term-Support releases, so we went with the long time stable, albeit slow release process of Debian.

The major rationale behind using CentOS or Red Hat Enterprise Linux (versus Fedora Core), or Ubuntu Server LTS or Debian stable (versus Ubuntu desktop latest) has to do with release schedules, and support (updates) lifecycles.

With the deployment of a large number of systems, in particular a large number of servers where uptime and availability is of prime important, doing a major version upgrade every six months is a lot of work, particularly is you have servers co-located, or a widely dispersed (e.g. nationally across the US, Canada, and/or India) network. So one of the goals becomes maintaining support over a longer period of time, while being proactive with security updates, and trying to strike a balance in regards to supporting new devices (e.g. new CPU model, new motherboard chipset) that newer systems may be based upon. A lot of companies have taken to life-cycling enterprise hardware ~3-4 years, which matches the longest regular manufacturer & OEM's warranty term. Of course, some try to combine new hardware purchase with new OS upgrade if possible to reduce effort. Thus GNU/Linux distributions with longer support periods tend to win in usage preferences.

I believe one reason that CentOS is commonly found in the server environment, is that is work-alike to Red Hat Enterprise Linux, which many 3rd-party training courses base their Linux training upon, so system administrators are familiar with RHEL and CentOS specific configuration file layout and included configuration GUI front-ends.

I hope that answers some alternatives distributions that you will also find on servers, as well as some of the rationale behind the decision process in general.

mctylr
  • 863
3

Short answer: CentOS is a free recomplilation of Red Hat Enterprise Linux (RHEL) from the source Red Hat provides.

Background:

RHEL is regarded as a good choice of Linux in a corporate IT environment because:

  1. RHEL, within a major release, doesn't change kernel version, library versions, or versions of many different services (e.g. apache httpd). Security fixes are actively back-ported to these "old" versions of code. That goes a long way to counter perceptions of Linux as being unstable, while still addressing security concerns.

  2. Red Hat has been around a loooong time (in Linux land), and have actively maintained their code base. They also sell support. From a corporate perspective, paid support means less downtime, and reduces accusations of negligence from disgruntled shareholders.

  3. RHEL targets Enterprise customers - see the above points. Beyond that, the management tools they write target corporate needs, e.g. the integrated Clustering features.

Given the corporate adoption of RHEL, 3rd-party software companies started writing code to run on it - which led to a closed loop (more software, more adoption of RHEL, larger market, more software...)

Interestingly, Red Hat maintains a corporate attitude of respect for the GPL spirit, which means that, although they are aware of CentOS, they didn't complain much except to request that all Red Hat logos, etc, be removed from CentOS - perhaps to prevent CentOS users/admins from asking for support from Red Hat. Red Hat isn't interested in providing support for individuals or low-budget organizations. Maybe it's not cost-effective for them.

So:

  1. There's a thriving ecosystem and reputation for RHEL as an enterprise-grade server.
  2. CentOS is essentially RHEL.
  3. RHEL support/licensing costs money, CentOS is free.
Shewfig
  • 481
2

Also, many admins use CentOS because it plays nice with Server Management tools such as cPanel, Plesk, DirectAdmin, etc.

1

There are different priorities for desktop OSes vs Server OSes, and admins are picking based on which one they think is the best choice for the particular job. And probably also to some degree which one they know best - and RH has been around longer than Ubuntu.

Rob Moir
  • 31,974
0

Red Hat is one of the most popular business Linux distros. Fedora is nice, but Fedora is bleeding edge. There are bugs and issues that you'll have to deal with there that you'd never have to deal with with RHEL. Enter CentOS, which attempts to achieve the stability of RHEL with the openness of Fedora.

Satanicpuppy
  • 5,965
  • 2
    I'm not sure what you mean by openness other than it doesn't cost any money. It's not like there are communities making CentOS package decisions and versioning choices. They take the RHEL source, compile it, remove RHEL trademarked images and release it as CentOS. – MDMarra Apr 02 '10 at 12:36
0

Just as a note, there's no harm in using Ubuntu Server. If you're familiar with Ubuntu on the desktop then you will be familiar with the server version, too (using apt-get, filesystem conventions et al) and it is actually pretty stable/reliable. I've been using Ubuntu on a few servers for quite a while now, and I must say I'm pleased. And you also have great (unofficial) support and (official) security updates.

Felix
  • 380