To change the main IP address on your WHM (Web Host Manager) server, follow these steps:

Step 1: Log into WHM

  1. Open your web browser and go to https://your-server-IP:2087.
  2. Enter your WHM username and password.

Step 2: Change the Main IP Address

  1. Navigate to Basic Settings:
    • In the left sidebar, go to Server Configuration > Basic WebHost Manager Setup.
  2. Update Main IP Address:
    • Locate the Main Shared Virtual Host IP field.
    • Enter the new IP address you want to set as the main IP.

Step 3: Update DNS Settings

If you have DNS settings pointing to the old IP, you'll need to update them as well:

  1. Go to DNS Zone Manager:
    • Navigate to DNS Functions > Edit DNS Zone.
    • Select the domain you want to update.
  2. Edit the A Records:
    • Update the A records to point to the new IP address.
    • Save changes after editing the DNS records.

Step 4: Reconfigure Accounts (if necessary)

If you have cPanel accounts that were using the old main IP:

  1. Go to Account Functions:
    • Navigate to Account Functions > Modify an Account.
  2. Select Account:
    • Choose the account you want to modify and click Modify.
  3. Change IP Address:
    • In the IP address section, select the new IP address from the dropdown menu.
  4. Save Changes.

Step 5: Restart Networking Services

Sometimes, you may need to restart networking services for the changes to take effect:

  1. Use SSH to connect to your server.

Run the following command:
bash
Copy code
/etc/init.d/network restart

Step 6: Verify the Changes

  1. Check that the new IP address is functioning properly.
  2. Test your websites to ensure they are accessible and that DNS changes have propagated.

Summary

To change the main IP address in WHM, update the settings in the Basic WebHost Manager Setup, adjust DNS records as needed, and modify individual cPanel accounts if required. Always verify that the new IP address is functioning correctly after making changes.

Was this answer helpful? 0 Users Found This Useful (0 Votes)