I want build a LAMP stack, What is the best Linux distro for LAMP?

  • Cent OS 5.5?
  • Debian 5?
  • Ubuntu 10.10?
  • Fedora 14?
  • openSUSE 11.2?

Which is more stable, and which has lower memory usage?

link|improve this question
feedback

migrated from stackoverflow.com Feb 5 '11 at 11:10

This question came from our site for professional and enthusiast programmers.

closed as not constructive by Mark Henderson Jan 15 at 5:26

This question is not a good fit to our Q&A format. We expect answers to generally involve facts, references, or specific expertise; this question will likely solicit opinion, debate, arguments, polling, or extended discussion. See the FAQ for guidance on how to improve it.

3 Answers

Fedora is bleeding edge. CentOS is a free version of Redhat, which is built from Fedora.

Similarly, Ubuntu is the bleeding edge version of Debian.

I've never used openSUSE enough to be able comment on it.

For a server/production environment, CentOS or Debian. For desktop, any of the others.

link|improve this answer
1  
"CentOS is a free version of Redhat, which is built from Fedora." — wrong. It's built from RHEL's sources. – poige Feb 5 '11 at 14:54
feedback

All of those are very similar. The biggest variance is in how they manage their distributions and what other software is included. I doubt very much you would notice any difference running a basic LAMP stack on any of them.

I do know that Fedora tends to be more bleeding edge if that's your thing.

Cent OS seems to be very popular with hosting companies. (Such as www.slicehost.com.)

If you are new to Linux then I would recommend you start with Ubuntu since the community around it is amazing. Definitely check out www.askubuntu.com.

link|improve this answer
feedback

It's not really a question that can be answered for you.

Memory usage will be down to how you setup and use the server, rather than what distribution of Linux it's running. (Apache settings, PHP memory limits, MySQL buffer sizes).

The choice between them is based upon your preference of package management (RPM v's DEB), and if you have specific software you're needing to run. But if you are after a LAMP stack any of them will do it fine.

If you are needing certain versions of Apache/MySQL/PHP check out http://distrowatch.com/ which will give you the currently shipped versions in each distribution.

link|improve this answer
feedback