matanasov

Registered
May 14, 2020
1
0
1
Macedonia
cPanel Access Level
Root Administrator
Hello,

Is it possible to modify the document root for addon domains using the API or any other method? I have to do it for 500+ addon domains, and doing it manually will take a lot of time..

Thanks
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
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