HOW TO CHANGE PRIMARY IP ADDRESS FROM WHM/CPANEL AND SSH?

Steps in WHM:

You can change primary ip in whm very easily

1.just Log into WHM and go to Basic cPanel & WHM Setup
2. Change Primary IP

And the 2nd way Log in to SSH:

1. Edit it by using
#vi /etc/sysconfig/network-scripts/ifcfg-eth0
to Change the IPADDR

2. vi /etc/sysconfig/network –to change the gateway

3. vi /etc/ips —–> remove the primary ip

4. vi /var/cpanel/mainip —–>replace with old to new

5. vi /etc/hosts —>>>> Replace with old to new IP

6. /etc/init.d/network restart

7. /etc/init.d/ipalias restart

8. /usr/local/cpanel/cpkeyclt —>to refresh the licence.

 

http://www.stradsolutions.com/linux-vps.php

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

HOW TO RESOLVE FAILED TO OPEN SESSION LOCKFILE ISSUE OF C PANEL?

If you are getting this issue wih CPanel: failed to open session lockfile:...

CPANEL LICENSE ACTIVATION…

  1. Just go on this URL  http://verify.cpanel.net  to verify the licence   then, run   2....

HOW TO MOVE WEBSITE TO NEW HOST BY USING CPANEL?

Step1: Login to your cPanel   Step 2: Click on the “File Manager”   Step 3: It will prompt...

HOW TO UPLOAD WEBSITE USING CPANEL?

Cpanel: Cpanel is the web based control panel which run on Linux operating sytem. It provide...

How to install FTP in Linux and Windows

Linux Server : Install vsftpd yum install vsftpd Edit the vsftpd configuration file...