Centos 5 virtual hosting howto part 3

Start installation

File system is formatted

The installation will run

Reboot the system

Services to disable

To enhance security and free system resources on the system we need to disable any services that are not required. You can run this script to do this for you.

  • acpid
  • anacron
  • apmd
  • autofs
  • bluetooth
  • cups
  • firstboot
  • gpm
  • haldaemon
  • messagebus
  • mdmonitor
  • hidd
  • ip6tables
  • kudzu
  • lvm2-monitor
  • netfs
  • nfslock
  • pcscd
  • portmap
  • rpcgssd
  • rpcidmad
  • sendmail
  • smartd
  • yum-updatesd

Basics

We need to fix a few issues to prepare the system for configuration

  • Install updates
 # yum upgrade
  • Switch the mta to postfix
 # alternatives --config mta
 There are 2 programs which provide 'mta'.
   Selection    Command
 -----------------------------------------------
    1           /usr/sbin/sendmail.postfix
 *+ 2           /usr/sbin/sendmail.sendmail
 Enter to keep the current selection[+], or type selection number: 1
  • Install caching-nameserver config
 # yum install caching-nameserver
  • Install Build tools
 # yum install gcc cpp gcc-c++ automake automake14 automake15 automake16 automake17 openssl-devel subversion ncurses-devel -y 

Configure network alias

 # cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:1

Modify the file /etc/sysconfig/network-scripts/ifcfg-eth0:1 to look like this

DEVICE=eth0:1
BOOTPROTO=static
BROADCAST=192.168.1.255
IPADDR=192.168.1.6
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes

Continue to part 4

centos_5_virtual_hosting_setup3.txt · Last modified: 2008/02/07 17:00 by topdog
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki