Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.
Daily Diamond

Adding Domains to CPanel in Bulk?

Status
Not open for further replies.

GT Web

DNF Addict
Legacy Exclusive Member
Joined
Feb 21, 2003
Messages
6,459
Reaction score
3
Hello all,

Looking for some help with this one...I may need to add approximately 500 domains to a hosting account with CPanel for a client I am working for and then subsequently upload a website for each domain.

This will be a painful and time-consuming process I realize, but are there any shortcuts you know to speed this up? I was thinking there has to be some sort of script made for CPanel that could help me here...

Thanks in advance!
 
Domain Days 2024

rileez

I Blame /.
Legacy Exclusive Member
Joined
Feb 26, 2004
Messages
311
Reaction score
1
If you would like to have files placed in an account upon creation through cpanel place files in /cpanel3-skel/public_html
Whatever is in the directory when creating an account will be in the new accounts directory.
Sorry as I have no info on how to add 500 domains at once :)
 

jdk

DNF Addict
Legacy Exclusive Member
Joined
Jul 23, 2004
Messages
6,350
Reaction score
24
Are they running their own dedicated server (where you have root access) or using a virtual hosting account?
 

rileez

I Blame /.
Legacy Exclusive Member
Joined
Feb 26, 2004
Messages
311
Reaction score
1
jdk, Is that you asking over at WHT the same thing?
 

jdk

DNF Addict
Legacy Exclusive Member
Joined
Jul 23, 2004
Messages
6,350
Reaction score
24
Yes, I am trying to ask around for him. I know there is such a script to do email's but not addon's. If I find something I will send it his way. I have also asked on cPanel.net's forum too.
 

GT Web

DNF Addict
Legacy Exclusive Member
Joined
Feb 21, 2003
Messages
6,459
Reaction score
3
Thanks jdk - your help is much appreciated.

I believe we will be running a dedicated server, but this is not confirmed yet. As I said, I am not 100% sure I will need to do this yet, so dont spend too much time on it. I am asking now in the hopes I will figure out a solution before the problem is officially handed to me.

Thanks again!
 

jdk

DNF Addict
Legacy Exclusive Member
Joined
Jul 23, 2004
Messages
6,350
Reaction score
24
No problem. I posted two threads on other forums to find an answer. If I get a reply it will email me. I will be needing a similar script so if you get an answer be sure to post it here or send a PM my way.
 

rileez

I Blame /.
Legacy Exclusive Member
Joined
Feb 26, 2004
Messages
311
Reaction score
1
I myself would like to see a similar script. If I have to write one I will but I will wait to see what pops up.
 

jdk

DNF Addict
Legacy Exclusive Member
Joined
Jul 23, 2004
Messages
6,350
Reaction score
24
Do you know how to add just one addon domain? If so I should be able to modify it to add multiple addons.
 

rileez

I Blame /.
Legacy Exclusive Member
Joined
Feb 26, 2004
Messages
311
Reaction score
1
I will look into the cpanel API docs for this.
 

NameTower

Level 9
Legacy Platinum Member
Joined
Apr 21, 2003
Messages
2,886
Reaction score
0
Nice to see fellow members helping eachother out..

Not knowing anything about cpanel he's what I would do...

make a text file with all of the domains;

use a php file like this (this might have to be added into the cpanel directory, but maybe not:
Code:
<?php
$file = file("domains.txt");
if($linenumber==""){
$linenumber=0;
}
$domain = $file[$linenumber];
if($domain==""){
echo "script is complete";
die;
}
$file = file("http://urlforcpaneladdon?variableforaddondomain=$domain&variableforaddonpassword=chooseapassword&variablefordirectory=$domain");
foreach($file as $line){
echo $line;
}
$newlinenumber=$linenumber+1;
echo <<<END
<meta http-equiv="refresh" content="2;url=thisscriptname.php?linenumber=$newlinenumber">
END;
?>

good luck; this is just a rough framework (I could have made mistakes :p)
 

GT Web

DNF Addict
Legacy Exclusive Member
Joined
Feb 21, 2003
Messages
6,459
Reaction score
3
Thanks Jordan, hopefully this will help many DNF members work with CPanel more efficiently :)
 
Status
Not open for further replies.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

Sedo - it.com Premiums

IT.com

Premium Members

Premium Members

MariaBuy

Our Mods' Businesses

UrlPick.com

*the exceptional businesses of our esteemed moderators

Top Bottom