Skip to main content

Modify multiple addon domains

Comments

2 comments

  • plesk4lyf
    Hey there, I had a look through WHMAPI1 and UAPI but couldn't see a way to do it using those utilities. Although it's deprecated, you could look at cPanel API2 and its addon domain functions to list, remove and add addon domains.
    0
  • cPanelLauren
    There really isn't a way to change the documentroot but you could remove the addon and re-add it with the function you note. The documentroot is also stored in /var/cpanel/userdata/$user/domain.tld files
    0

Please sign in to leave a comment.