US: 1-941-4621-069
  
Cyprus: 3-572-2052-781

Go Back   ISPsystem.com Forums > ISPmanager > General technical discussion
Register FAQ Community Calendar Today's Posts Search


Closed Thread
 
Thread Tools
Old 05-25-2010, 03:15 PM   #1
Junior Member
 
Join Date: Oct 2009
Posts: 21
stderr is on a distinguished road
Default ISPManager Lite and a lot of domains

Hi all,

I want to add a lot of domains (hundreds) to ISPManager Lite ... Is possible to add corresponding lines into httpd.conf and make directories (DocumentRoot) with simple script or has ISPManager any "db" for storing domains info?

Thanks for replies!
stderr is offline  
Old 05-25-2010, 07:17 PM   #2
ISPsystem team
 
slava's Avatar
 
Join Date: May 2008
Location: ISPsystem
Posts: 588
slava is on a distinguished road
Default

You can add new domains via API http://en.ispdoc.com/index.php/ISPmanager_API
http://en.ispdoc.com/index.php/How_to_work_with_API
slava is offline  
Old 05-26-2010, 10:01 AM   #3
Junior Member
 
Join Date: Oct 2009
Posts: 21
stderr is on a distinguished road
Default

Oh, sure.. I thought that API is only for ispmgr pro..

Nice, thanks!
stderr is offline  
Old 06-14-2010, 02:29 PM   #4
Junior Member
 
Join Date: Oct 2009
Posts: 21
stderr is on a distinguished road
Default

Hi, sorry for reopening but I have one more problem..

I need to change IP for custom domain via API and don't know how.. With documentation I wrote something like:

curl -k -s "https://<ipadress>/manager/ispmgr?auth=<session_id>&func=wwwdomain.edit&sok=y es&elid=<domain>&ip=<ip_address>&out=xml"

but I get error 4.. What's wrong?

Thanks a lot!
stderr is offline  
Old 06-14-2010, 05:01 PM   #5
ISPsystem team
 
Join Date: Oct 2009
Posts: 118
vian is on a distinguished road
Default

Error 4 means "Invalid value". One of the parametrs you entered has invalid format or value.
Please show full http-url.
vian is offline  
Old 06-15-2010, 11:41 AM   #6
Junior Member
 
Join Date: Oct 2009
Posts: 21
stderr is on a distinguished road
Default

Quote:
Originally Posted by vian View Post
Error 4 means "Invalid value". One of the parametrs you entered has invalid format or value.
Please show full http-url.
I thing that everything is ok in url... maybe there is problem with IP address which was add not by ispmgr but via system (there are lot of vlans, aliases, one hundred ips).
I'm using authentification as root - so I suppose that I have permissions for changing IP for domain.

Becouse of customer, I can't send details ... so:
ip of server is correct
session id is ok (I can add domains, etc)
domain is already in system (added by API)
ip was added by system (CentOS 5.5), loaded by ispmgr after restart (I can manipulate with it in ispmgr gui) - address is fill in url in the standard form, eg. 192.168.0.10

As example I'm using:
curl -k -s "https://example.com/manager/ispmgr?auth=15524517&func=wwwdomain.edit&sok=yes&e lid=domain.com&ip=192.168.0.1"
stderr is offline  
Old 06-16-2010, 12:15 PM   #7
Junior Member
 
Join Date: Oct 2009
Posts: 21
stderr is on a distinguished road
Default

Okay, my mistake - ispmgr returned error code:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<doc><error code="4" val="admin"> </error> ...etc
                     ^^^^^^^^^^^
I have added a administartor e-main (&admin=webmasterr@domain.com) and everything is ok..
stderr is offline  
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:22 PM.