Vytautas Gimbutas's blog

CentOS 6: the perfect server

| Comments

This is my old post about CentOS server. Perhaps you can find something useful here… However I do not recommend to follow this guide (at least blindly, i.e. copy&paste) as of today (November 3, 2011) as it feels from increased amount of problems people are having. It’s out of date.

I must start this article with a disclaimer, that the perfect server here stands for my needs, not yours. This post actually combines several blog posts and how-to’s about setting up a CentOS server. I will not however mention them here, because I find them not only out-dated but also useless (inaccuracy-wise) if you’re using them individually as the only source for information. Also this guide will be very straight-forward and fairly technical, so feel free to use Google on what seems to be unknown to you.

Setup

  • Apache2.2 + PHP5.3 + MySQL5.1
  • Postfix (+MySQL) + Dovecot + Squirrelmail + PostfixAdmin
  • Amavisd-new, SpamAssassin, Clamav
  • Vsftpd

I recommend to start purely from scratch, i.e. a server with a fresh CentOS 6 installation. You might want to know that as of CentOS 6 base repository has PHP 5.3 (not 5.2), Dovecot 2 (not 1.X) and Postfix with integrated MySQL support already. Not only it’s great, but some things have changed and must be adjusted accordingly.