• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 434
  • Last Modified:

Which version of CentOS is best for hosting websites?


I need to purchase a server to host a number of dynamic websites powered by Linux, Apache, MySQL and PHP.

I have used CentOS 4 in the past and am happy with it.

Which of the following options should I have installed on my server?  I will not be using any control panals like cpanel or anything fancy, just Apache, MySQL and PHP.

         CentOS 4 (32 bit)
         CentOS 4 (64 bit)
         CentOS 5 (32 bit)
         CentOS 5 (64 bit)

4 Solutions
I would go with CentOs 5 32 bit. 32bit is long testes is proved stable.
I am running centos 5.1 32 bit and am very happy with it.

incedentally, I would stay away from the 64bit options.

the 64bit compiler is not as stable/robust as the 32bit version.  If you ever had to compile anything from source it would be tough to figure out if it was the program source, or the compiler that caused the problem (when there was one).

even on my 64bit capable hardware I run 32bit os, I'll get around to switching it out, but I just dont think its ready for prime time yet.

Pétur Ingi EgilssonSoftware Engineer -- ConsultantCommented:
I'd go with 64bit if you intend to have more than 4GB of RAM in your server ( now or in the future ).
A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

32bit linux supports up to 64GB of ram. If You want to have more - choose 64bit.
But there's other issue with ram, on 32bit single process can address only 3GB(4GB with hugemem kernel). Hence I don't think any of Apache, MySQL, PHP can use that much.
More than 3GB per process is usually needed for very large enterprise databases.
Choose CentOS5 32 bit.

The CentOS releases are very robust/stable (as they come directly from Redhat Enterprise)

hankknightAuthor Commented:
Thank you.

CentOS5 32 bit seems to be the consensus.  I will have 4 GB of ram.  When I can afford to I will place my database on a SEPARATE server anyway so I think 4 GB of RAM is all I will need on this system.

I have posted a related question here: (about the hugemem kernel)
Pétur Ingi EgilssonSoftware Engineer -- ConsultantCommented:
ravenpl: Correction, Centos 5 uses PAE Kernel instead of Hugemem
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now