Current time: 12-24-2024, 11:20 AM Hello There, Guest! (LoginRegister)


Post Reply 
Add domain from domain list file. How?
Author Message
bsn Offline
Junior Member
*

Posts: 32
Joined: Feb 2009
Reputation: 0
Post: #1
Add domain from domain list file. How?
Hello!

How add domain from file?
File like this
dom1.com
dom2.com
...
dom100.com
and etc

Thanks.
09-30-2010 04:27 PM
Find all posts by this user Quote this message in a reply
bsn Offline
Junior Member
*

Posts: 32
Joined: Feb 2009
Reputation: 0
Post: #2
RE: Add domain from domain list file. How?
I found solution.

INSERT INTO domain VALUES (64,'test.su',0,0,69,2,1285833429,0,0,10,5,0,5,5,'to_add',0,0,1,0,0,'yes','no','​full','no'​);
INSERT INTO admin VALUES (69,'test.su',md5('Password'),'user',1285833429,'',2,'','','','','','','','','ad​min911@mai ​l.ru','','','','',NULL,NULL);
and run /var/www/ispcp/engine/ispcp-rqst-mngr
It's all

69 = max admin_id value + 1 from admin table
64 = max domain_id value + 1 from domain table
09-30-2010 07:21 PM
Find all posts by this user Quote this message in a reply
vanshyr Offline
Junior Member
*

Posts: 33
Joined: Apr 2009
Reputation: 0
Post: #3
RE: Add domain from domain list file. How?
MM i think there is a CLI file, for send comands to ispcp, you should parse each line of your domain list file (for example with linux comands like 'cat, grep, awk...') and call the CLI with the config you want for each domain.
I think is better than do an DB update manually...
09-30-2010 09:15 PM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #4
RE: Add domain from domain list file. How?
toadd not to_add Wink
10-01-2010 02:59 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)