Server Build

From HyperSecurity Wiki
Jump to: navigation, search

Needed Packages Installation

Need YUM Repo:

rpm -Uvh http://mirror.its.dal.ca/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm

Run the following to install all needed packages via YUM:

yum -y install php-devel php-ldap php-xml php-xmlrpc php-pecl-apc php-mbstring php-mcrypt php-mssql php-snmp php-soap php-tidy curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel mod_fcgid php-cli httpd-devel rsyslog mod_ssl php-mcrypt logwatch dovecot tcpdump ntp postfix mysql-server bind-chroot spamassassin php-gd perl-Mail-DKIM dkfilter monit

Next update the complete system and reboot:

yum -y update && reboot

DKfilter Package:

Domain key filter is needed for Postfix:

wget http://jason.long.name/dkfilter/dkfilter-0.11.tar.gz

Chkconfig Startup Settings

chkconfig dkfilter on
chkconfig dovecot on
chkconfig iptables on
chkconfig mysqld on
chkconfig named on
chkconfig postfix on
chkconfig spamassassin on
chkconfig sendmail off

Apache

Need to create the following directories in order for Apache to run:

mkdir -p /var/log/virtual_httpd/error
mkdir -p /var/log/virtual_httpd/access

MySQL

Import all database:

mysql -uroot < alldatabases