Addon api creation
I cannot find any script to create multiple addon domains, most scripts are 5 years old...
This one seemed interesting, doesn't create anything although gives this output: "Process completed. Communication with Cpanel successful. Please check your control panel to make certain all domains were added correctly."
- Removed -
Is there any solution to easily create addon domains except using Cpanel's interface?
Best regards
-
Hello, The following cPanel API 2 function is available for this purpose: cPanel API 2 Functions - AddonDomain::addaddondomain - Software Development Kit - cPanel Documentation If you are looking to set up a PHP script with a cPanel API 2 function, you can review the examples from the PHP client class at: GitHub - CpanelInc/xmlapi-php: A PHP Class for Interacting with cPanel's XML-API Let us know if this helps. Thank you. 0 -
Thank you Michael. I had seen those but they seemed deprecated... I created a workaround but it's far from perfect. 0 -
Thank you Michael. I had seen those but they seemed deprecated... I created a workaround but it's far from perfect.
We recommend using UAPI whenever possible, however some cPanel API 2 functions do not yet have an equivalent UAPI function. There are no plans to remove cPanel API 2 functionality from the product in the immediate future. Thank you.0
Please sign in to leave a comment.
Comments
3 comments