PDA

View Full Version : ISPManager Lite and a lot of domains


stderr
05-25-2010, 03:15 PM
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!

slava
05-25-2010, 07:17 PM
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

stderr
05-26-2010, 10:01 AM
Oh, sure.. I thought that API is only for ispmgr pro..

Nice, thanks!

stderr
06-14-2010, 02:29 PM
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=yes&elid=<domain>&ip=<ip_address>&out=xml"

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

Thanks a lot!

vian
06-14-2010, 05:01 PM
Error 4 means "Invalid value". One of the parametrs you entered has invalid format or value.
Please show full http-url.

stderr
06-15-2010, 11:41 AM
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&elid=domain.com&ip=192.168.0.1"

stderr
06-16-2010, 12:15 PM
Okay, my mistake - ispmgr returned error 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.. :)