Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2001
    Location
    Bedminster, PA
    Posts
    194

    cpanel assigning wrong ip

    Where does cpanel store it's information that it's going to assign to new addon domains?

    My /etc/wwwacct.conf file had the wrong ip address on the first line and now that account creates addon domains with the wrong addy. I've edited the wwwacct.conf file and tried re-adding the domain from that account but it's still now working so i'm under the assumption that whm uses that file when creating the cpanel account.. cpanel then stores that info somewhere and never looks at wwwacct.conf again.

    I could fix it by terminating that account, but i'd rather just edit where ever it stores the info since I created some addon domains under this account already - I did fix the others so far using 'change ip address' in whm, but now that i've changed all those, the only way to fix this one is to switch all of the domains under that account to the 2nd ip address on the box which would make lots of work and propogation issues

    Soo.. if you follow what my problem is.. can ya help me out with some info?

    Thanks!
    Rob

  2. #2
    Join Date
    Nov 2001
    Location
    Bedminster, PA
    Posts
    194
    wow.. no one?

  3. #3
    Join Date
    Jun 2010
    Location
    India :)
    Posts
    289
    Hi,

    Check the file /var/cpanel/users/username. You can change the ip address for the domain in that file.

    Also when changing the ip make sure that you make necessary changes in the DNS and apache conf file too.

  4. #4
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,771
    Quote Originally Posted by kprojects View Post
    Where does cpanel store it's information that it's going to assign to new addon domains?
    Addon domain in cpanel is actually a subdoman with ServerAlias added to this subdomain for the actual added domain. The IP used the main domain will be assigned to the addon domain. The IP associated with the main domain will be taken by the cpanel from the httpd.conf file. Again the addon domain info will be shown in the /var/cpanel/users file as follows.

    DNS1=sub1.domain.com
    DNS2=sub2.domain.com
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

Similar Threads

  1. [HELP] assigning new name server
    By Osukaru in forum Dedicated Server
    Replies: 2
    Last Post: 12-17-2006, 01:01 AM
  2. Assigning numbers
    By vision3 in forum Programming Discussion
    Replies: 2
    Last Post: 09-13-2005, 03:13 PM
  3. Assigning an IP
    By Alex in forum Dedicated Server
    Replies: 7
    Last Post: 08-28-2005, 02:00 AM
  4. Assigning an IP to IP-less account in CPANEL
    By RaviSharma in forum Hosting Security and Technology
    Replies: 4
    Last Post: 07-28-2004, 07:04 PM
  5. [WHM/cPanel] Assigning multiple IPs to a client?
    By keyDet79 in forum Hosting Software and Control Panels
    Replies: 9
    Last Post: 04-06-2003, 03:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •