Linux – LAMP installs, what’s the difference between CentOS/RHEL and Ubuntu/Debian

centosconfigurationlinuxmigrationUbuntu

ANSWERED: See below, but feel free to add comments, or give your own answer too.


QUESTION/PROBLEM:

CentOS is a project requirement, and I'm trying to roll out a Drupal build asap, so I can focus on building out Drupal; which doesn't care what distro of Linux (or win) it's on. Problem is all the "good" guides are for ubuntu, and all the guides I've found for CentOS are not as good as the ubuntu ones. So… when I finally do the CentOS build, what are the differences "likely" going to be? (for example: package install CMDs, package availability/location, directories, etc.)

THANK YOU!!

Just in case anyone is interested, these are the three pretty good "how to guides" I found:

And one on configs to make LAMP a little more lightweight:

Best Answer

The biggest differences you'll see are package manager, and package age.

Configuration files for apache, mysql/postgresql, php, etc are going to be in pretty much the same place, and as easy to find in either distro. There isn't crazy-customization in either ubuntu/debian or CentOS's config files for these things.

What will be different..

Package managers: Ubuntu & Debian use apt-get and dpkg. CentOS/RHEL uses yum and rpm.

Package age: Ubuntu is going to have the newest packages. Risk averse sysadmins often avoid it for that reason.

CentOS/RHEL has older, but very solid packages. Never bleeding edge, but rarely moldy.

Debian is going to have really old packages. Risk averse sysadmins often love it, because it's really, really, stable.

Even if the ubuntu tutorials will be for a different version of a package your using, you should still be able to follow it, just keeping in mind to replace "apt-get install php" with "yum install php", and things like that.