Differences

This shows you the differences between two versions of the page.

Link to this comparison view

centos_deployment [2011/12/05 12:40]
centos_deployment [2011/12/05 12:40] (current)
Line 1: Line 1:
 +==== CentOS Deployment ====
  
 +  * [[CentOS]]
 +  * [[yum]]
 +  * [[http://​dev.digitaltrike.com/​~steve/​downloads/​centos/​|centos downloads]]
 +
 +Steps involved in setting up a new CentOS server:
 +
 +  * Install htop
 +  * Install [[monit]]
 +  * Install [[collectd]] and [[cgp]] and [[awstats]]
 +  * Install [[postfix]]
 +  * Secure [[OpenSSH]]
 +  * Setup [[iptables]]
 +  * Configure [[PHP]]
 +  * Install [[PEAR]]
 +  * Add apache, iptables, to startup using [[ntsysv]]
 +
 +== Install development libraries ==
 +
 +<​code>​
 +yum groupinstall '​Development Tools'
 +yum groupinstall '​Development Libraries'​
 +yum install compat-db openssl097a
 +</​code>​
 +
 +==== LAMP ====
 +
 +== Install PHP 5.3 and MySQL 5.0 and mod_ssl ==
 +
 +<​code>​
 +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
 +</​code>​
 +
 +== Install PEAR ==
 +
 +<​code>​
 +wget http://​pear.php.net/​go-pear.phar
 +php go-pear.phar
 +pear upgrade-all
 +pear install Mail Mail_Mime Net_SMTP
 +</​code>​
 +
 +PEAR will be installed in ''/​usr/​share/​pear''​ and is included in PHP's configuration by default.
 +
 +== Install PHP Manually ==
 +
 +<​code>​yum -y install pcre-devel libxpm-devel libc-client-devel icu libicu-devel mysql-devel unixODBC-devel postgresql-devel aspell-devel net-snmp-devel</​code>​
 +
 +==== Package Cleanup ====
 +
 +== Remove X and programs ==
 +
 +<​code>​yum groupremove "X Window System"</​code>​