Skip to main content

Temporary subdomain assignment for cPanel users

Comments

5 comments

  • cPRex Jurassic Moderator

    Hey there!  We *just* released a Temporary Domain feature that you can find out more about here:

    https://docs.cpanel.net/whm/account-functions/create-a-new-account/#domain-information

    and here

    https://docs.cpanel.net/whm/account-functions/create-a-new-account/#temporary-domains

    However, right now there isn't a way to modify the temporary domains, but we're collecting feedback on that through our features site here:

    https://features.cpanel.net/c/309-custom-temporary-domain

    Before I recommend anything I just want to confirm that user1.example.com is *completely* separate from the user's maindomain.com, correct?  Even the TLD portion of "example.com" is unique, possibly using your server's hostname?

    0
  • Giorgi Chikhladze

    Hello,

    We do not want to use our server's hostname.

    We have a separate domain, for example "gabena.net" which is added to a separate cPanel account.

    I want to add subdomains like "maindomain.gabena.net" or "cPanelusername.gabena.net" automatically to every new cPanel account after creation.

    I even tried to configure it via bash script with WHM hooks, but it shows "(XID pempbx) The domain “gabena.net” does not belong to “newcPanelusername”." even though I enabled remote domains and allow subdomains creating in Tweak Settings.

    Is this possible to configure?

    0
  • cPRex Jurassic Moderator

    I was also going to recommend a hook - since it's the same domain each time it should be something you can program.

    While you enabled "Allow Remote Domains" did you also enable "Allow cPanel users to create subdomains across accounts" and "Allow unregistered domains" ?

    0
  • Giorgi Chikhladze

    Hello,

    I enabled every possible option in Tweak Settings, but still receive the error that the domain doesn't belong to the cPanel user. It seems API can't see those Tweak Settings options.

    Is there any other way to share access to that domain with other cPanel users?

    0
  • cPRex Jurassic Moderator

    Let's close this thread and stay in the one with the code snippet and log details.

    0

Please sign in to leave a comment.