Xylitol

Member
Feb 15, 2008
12
0
51
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?
 

wsenter

Well-Known Member
Aug 5, 2003
88
0
156
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.
 

Xylitol

Member
Feb 15, 2008
12
0
51
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.
 

summy

Active Member
Jan 14, 2004
34
0
156
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?