1.whm »
Server Configuration »
Basic cPanel & WHM Setup
Basic Config
* The IP address (only one address) that will be used for setting up shared IP virtual hosts.
Setting an IP not associated with this server is possible but not advised.
2.nano /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=”plain.domainname.com”
GATEWAY=”111.222.333.1″
GATEWAYDEV=”eth0″
FORWARD_IPV4=”yes”
3.nano /etc/hosts
::1 localhost6.localdomain6 localhost6
# Do not remove the following line, or various programs
# that require network functionality will fail.
111.222.333.444 yourname.server.com yourname
127.0.0.1 localhost
4.nano /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=111.222.333.255
IPADDR=111.222.333.444
NETMASK=255.255.255.0
NETWORK=111.222.333.0
ONBOOT=yes
5.nano /var/cpanel/mainip
6.service network restart