1

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:

3

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.

  • @Kyle__: Thanks, HUGE help to get 3rd party confirmation and more info. Cheers!! – blunders Oct 12 '10 at 22:00
2

Also, be aware that Debian/Ubuntu handle virtual host configurations via the sites-available/sites-enabled directories. They handle modules in the same way (modules-available/modules-enabled).

Red Hat-based distributions like CentOS and Fedora toss most of the module definitions into the main httpd.conf and they add in some extras into the conf.d/ directory. Managing the organization of the virtual hosts is completely up to you.

Also, Red Hat-base distributions call apache "httpd". Debian/Ubuntu call it "apache2". This can sometimes be an annoyance if you have to work with both distributions regularly as you have to remember what apache is called on each server. ;-)

  • @rackerhacker: Thanks!! Huge help, and nice hat too! – blunders Oct 13 '10 at 13:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.