Mirroring another cPanel account (addon domains)

blade304

Member
Jul 3, 2017
15
0
51
PL
cPanel Access Level
Root Administrator
Hi,

I'd like to create a new cPanel account to mirror another cPanel account the way that when I add a new addon domain to the new account, it loads the /public_html content of the original cPanel account when you visit the domain. Basically I just need a new storage for addon domains since there are too many of them in the original account.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
12,499
1,971
363
cPanel Access Level
Root Administrator
Hey there! There isn't a way to do that as cPanel userA can't read the data of userB due to permissions and security. It would be best to copy the data to the new account.

Can you get me more details on what you mean by "too many" addon domains on the account?
 

blade304

Member
Jul 3, 2017
15
0
51
PL
cPanel Access Level
Root Administrator
Hi cPRex, thanks for the reply. I have a few thousands addon domains right now in this account and adding/removing an addon domain works very slowly now. Adding a few addon domains overloads the server, it needs to be restarted, even though I already upgraded my hardware a couple of times. WHM/cPanel is not well designed to handle that amount of addon domains (even though I'm a big fan of cPanel otherwise).
 

blade304

Member
Jul 3, 2017
15
0
51
PL
cPanel Access Level
Root Administrator
And if I created another cPanel account for new addon domains, do you think it would help a lot?

If I can't mirror another account, I'd have to maintain two accounts with the same content, quite redundant.
 

blade304

Member
Jul 3, 2017
15
0
51
PL
cPanel Access Level
Root Administrator
Hmm, last time I checked (a few years ago) I was informed by cPanel team that it would need to be addons, not aliases, for the domains to get an SSL certificate and resolve via https, but perhaps something has changed? What would be the downside of not getting a unique vhost for each domain in terms of managing a website for each domain?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
12,499
1,971
363
cPanel Access Level
Root Administrator
Addons do get included with the free AutoSSL on the domain. If you were manually installing an SSL a few years ago, you would have needed a separate certificate for each domain.

Usually, people use Alias domains when they just want to point everything to the same content. Addon domains are for when you want multiple domains under the same cPanel account, but with different content. If you don't need unique content, you wouldn't need a unique vhost.
 

blade304

Member
Jul 3, 2017
15
0
51
PL
cPanel Access Level
Root Administrator
Thanks. No, it was also done via AutoSSL these few years ago. I'll test it with aliases and I'll let you know if there are any issues.

So would it be a significant improvement in terms of server load if I switched to aliases?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
12,499
1,971
363
cPanel Access Level
Root Administrator
I don't know if it would be a *significant* improvement or not, but it would definitely make the Apache configuration shorter. Instead of 25-40 lines for an addon domain, it would just be the domain name in the Alias line of the parent domain. Multiply that times several thousand, and your Apache restarts would almost certainly be faster.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
12,499
1,971
363
cPanel Access Level
Root Administrator
While that may be the case from their documentation, that isn't the certificate we use. More details on our limits can be found here:


which says there are 1000 allowed per vhost.

There is no way to get an unlimited number from any provider that I am aware of.