Bulk Add Parked Domains to One Account?
-
Hello @captlid, Since you are adding these parked domains (aliases) under a single cPanel account, you can use the following cPanel API 2 function instead: Thank you. 0 -
Hello @captlid, Since you are adding these parked domains (aliases) under a single cPanel account, you can use the following cPanel API 2 function instead: Thank you.
Hi Michael, I wrote a script that works and uses the commands given in the cpanel documentation. It takes at least 3 seconds to add each domain. That's 6000 seconds for 2000 domains. I also tested the cpapi2 command it is also very slow. :( I also read that thread you are referencing, its from 2010. The member by the name of merenda showed instructions on how to do it from the command prompt via ssh. Do her instructions still apply in 2019? If yes I can write a bash script to do so. That would be way faster. :) Regards,0 -
Hello @captlid, The manual modification of the files in /var/cpanel/userdata/ is unsupported. While the cPanel API 2 function may take longer, it's the best way to ensure the appropriate configuration files are populated with the correct information. You can still use a bash script with a cPanel API 2 function. For instance, here's an example cPanel API 2 command: cpapi2 --user=username Park park domain=example.com topdomain=subdomain
Thank you.0
Please sign in to leave a comment.
Comments
3 comments