Difference between revisions of "Building A New Server"

From HyperSecurity Wiki
Jump to: navigation, search
Line 16: Line 16:
 
Import MySQL Databases:
 
Import MySQL Databases:
 
   mysql -u root mysql < alldatabases.sql
 
   mysql -u root mysql < alldatabases.sql
 +
 +
Replace DNS zone files:
 +
awk '{gsub("OLD_IP", "NEW_IP", $0); print > FILENAME}' *.zone

Revision as of 04:30, 27 January 2013

Building a server using CentOS 5.x/6.x

Install required packages:

yum -y install httpd httpd-devel php php-gd php-pdo php-imap libtheora cdparanoia php-pear php-dba php-xml php-common php-cli php-devel php-mysql php-mbstring perl-Geography-Countries mysql-server gstreamer-ffmpeg ffmpeg ffmpeg-devel postfix dovecot spamassassin named

Packages to remove:

yum remove sendmail

Make sure following services are set to start on startup:

chkconfig httpd on
chkconfig mysqld on
chkconfig postfix on
chkconfig iptables on
chkconfig dovecot on

Import MySQL Databases:

 mysql -u root mysql < alldatabases.sql

Replace DNS zone files:

awk '{gsub("OLD_IP", "NEW_IP", $0); print > FILENAME}' *.zone