Table of Contents

CentOS Deployment

Steps involved in setting up a new CentOS server:

Install development libraries
yum groupinstall 'Development Tools'
yum groupinstall 'Development Libraries'
yum install compat-db openssl097a

LAMP

Install PHP 5.3 and MySQL 5.0 and mod_ssl
yum -y remove php-cli php-common php
yum -y install mysql-server ntsysv mod_ssl
yum -y install php53 php53-cli php53-gd php53-imap php53-mysql php53-pdo php53-bcmath php53-dba php53-intl php53-mbstring php53-odbc php53-soap php53-xml php53-xmlrpc
Install PEAR
wget http://pear.php.net/go-pear.phar
php go-pear.phar
pear upgrade-all
pear install Mail Mail_Mime Net_SMTP

PEAR will be installed in /usr/share/pear and is included in PHP's configuration by default.

Install PHP Manually
yum -y install pcre-devel libxpm-devel libc-client-devel icu libicu-devel mysql-devel unixODBC-devel postgresql-devel aspell-devel net-snmp-devel

Package Cleanup

Remove X and programs
yum groupremove "X Window System"