Web Hosting Talk







View Full Version : Script to add Addon Domains to cPanel


jdk
05-16-2006, 06:22 PM
I am looking for a script to add multiple domains to cPanel. If anyone knows a script that will add one addon domain to cPanel I can always modify it to add the amount I am looking to add. Any suggestions where to find such a script? I have seen them for webmail, but looking for one to add Addon domains.

kosmo
05-16-2006, 06:58 PM
We have a cpanel theme under development that does exactly this (along with other multiple whatever operations). It is not available yet, it will be some time next week. I don't know if you can wait.

kosmo

jdk
05-16-2006, 07:05 PM
If it is going to be free. Otherwise, I am looking for a script and not a full blown cPanel theme. So to answer your post, I am likely looking for just the bit of code to add the multiple addon domains or a script to just add one addon domain and I can modify it to add multiple addon domains.

phaoost
02-14-2007, 06:58 PM
I have the same trouble. Any success with it? I was trying, but got error I can't fix. See forums.cpanel.net/showthread.php?t=63542

somebodyrocks
02-15-2007, 12:17 PM
Here, this script creates subdomains:
http : / /zubrag.com/scripts/cpanel-subdomains-creator.php
If you have knowledge of very very basic knowledge of PHP, then this script is easy to modify. This script just opens a socket with your login credentials, and some other variables and uses the cPanel "GET" method to pass variables through a URL via a socket.

Basically, all you need to do is change the variables passed through the script, and change the socket-to-be-opened URL to this:
http : / /<YOUR CPANEL USERNAME>:<YOUR CPANEL PASSWORD>@<YOUR DOMAIN>:2082/frontend/<YOUR CPANEL THEME>/addon/doadddomain.html?domain=<THE DOMAN YOU WANT TO ADD>&user=<THE FTP USERNAME FOR THE NEW DOMAIN>&pass=<THE FTP PASSWORD FOR THE NEW DOMAIN>

OR..you could be smrt and write a new script that opens that URL with a socket and some variables so it's your own and it's clean and you know how it works

spdfox
02-15-2007, 04:37 PM
excellent script !!!!