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.

Reseller accounts domain name

Discussion in 'General Discussion' started by Xylitol, Jan 25, 2009.

  1. Xylitol

    Xylitol Member

    Joined:
    Feb 15, 2008
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    We use WHMCS + WHM/cpanel combination and we always create a reseller account to the server, which is then used by whmcs to create the new cpanel accounts.

    The problem is, that when we get a new server, we cannot give the reseller account on that new server, an existing domain. Therefore I have had to make up the domains, for example server1reseller.com etc. These domains do not exist, which causes problem with the suspended pages. When I suspend an account, the site tries to go to http://server1reseller.com/suspended.page which obviously does not exist.

    Has anyone solved this problem and how?
     
  2. wsenter

    wsenter Well-Known Member

    Joined:
    Aug 5, 2003
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Texas
    I have 3 ideas for you...

    You may want to discuss this problem with WHMCS and see if they can alter their application to not require reseller accounts.

    Is is possible to use a sub domain on an existing account for a domain you are already using?

    server1.yourdomain.com
    server2.yourdomain.com
    server3.yourdomain.com

    Could you possible alter the suspending script (in shell) to make it direct to different page?? Here is the line of code you would need to work with...

    "print {$htaccess_fh} "RedirectMatch .* http://${host}/suspended.page/\n";"

    You would just change that to "print {$htaccess_fh} "RedirectMatch .* http://[B]CorrectDomain.Com[/B]/suspended.page/\n";"

    That file is located in "/scripts/suspendacct" on line 199.

    EDIT YOUR FILE AT YOUR OWN RISK. I assume no responsibility or guarantee that it will work.
     
  3. Xylitol

    Xylitol Member

    Joined:
    Feb 15, 2008
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for the hints.

    I think I got this one solved. I edited the DNS zone for the reseller accounts domains and made a CNAME entry to point to a working domain.
     
  4. summy

    summy Active Member

    Joined:
    Jan 14, 2004
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Hi there,

    Bit of an addition to this, this is exactly what we would like to do, set up reseller accounts and use those for account automation functions from our billing system.

    My question is, are we able to set up the server hostname as a reseller account?

    so for example the server hostname is:

    server1.hostingcompany.com

    Can we set up a (reseller) account to be "server1.hostingcompany.com" ?

    I know that you can set up sub domains like this owned by the account, just not sure if you can do it with the hostname or not?

    Anyone?
     
Loading...

Share This Page