The Community Forums

Interact with an entire community of cPanel & WHM users.
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Create Account with IP different from main shared IP

Discussion in 'General Discussion' started by anty, Nov 24, 2008.

  1. anty

    anty Registered

    Joined:
    Nov 24, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I'm trying to add new domains distributed equally between all of my IPs.

    I'm logged in as root and create a new account for each domain. The only way I can set an IP other than the main shared IP is, to select a dedicated one.

    Since I want to install more domains than I have IPs, I need to manually
    1. make every new created account a reseller account
    2. allow each account to use all of my IPs
    3. set the main IP of each account to the one I want to use with my domain
    4. change the IP of the domain
    5. (optionally) remove the reseller privilege.

    Have I overlooked something, or is there really no possibility to specify a shared IP on account creation?

    Does anyone know a faster way to add a domain with a specific IP?
     
    #1 anty, Nov 24, 2008
    Last edited: Nov 25, 2008
  2. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    447
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    I am not sure if I understand you completely, but thy don't you change your main shared IP from "WHM >> Server Configuration >> Basic cPanel/WHM Setup". You can create some accounts on one IP and after that change your main shared IP. All new accounts afterwards will by default be created on the new IP. After this, change your main shared IP again. This will help you creating all accounts as resellers and then later removing their privileges. You can check how many domains are on a single IP by checking "WHM >> IP Functions >> Show IP Address Usage".
     
  3. anty

    anty Registered

    Joined:
    Nov 24, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Thank you, Howard. I haven't thought about that. I've tried it and it works great.
    The only disadvantage is, that it's not "thread save", meaning another person adding a domain at the same time would cause unexpected behavior.

    Is there no one-step solution?
     
  4. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    447
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    You want all accounts to have access to all IPs and then also do not want them to use those IPs. Well, the only other option would be to restrict resellers to use a specific IP or a set of IPs, I am not sure if this is of your use but you can try the feature under "WHM >> Resellers >> Reseller Center >> Edit Privileges/Nameservers". This way, a reseller will not assign any IP to a domain other than the one you choose for that reseller.
     
  5. fire692

    fire692 Member

    Joined:
    Jul 20, 2009
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    This worked for me. Thank you

     
  6. losvre

    losvre Registered

    Joined:
    Mar 25, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hello Anty,

    May I ask you if the question you asked for WHM/Cpanel was for a reseller account you had OR about a dedicated server that you had installed WHM/Cpanel?

    Thank you
     
  7. losvre

    losvre Registered

    Joined:
    Mar 25, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hello there,

    You could get WHMCS to automate things. Make different packages and then assign them to different IPs via WHMCS. So, every time someone picks a package will be assign it the corresponding IP.
     
Loading...

Share This Page