05-25-2010, 03:15 PM | #1 |
Junior Member
Join Date: Oct 2009
Posts: 21
|
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! |
05-25-2010, 07:17 PM | #2 |
ISPsystem team
Join Date: May 2008
Location: ISPsystem
Posts: 588
|
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 |
06-14-2010, 02:29 PM | #4 |
Junior Member
Join Date: Oct 2009
Posts: 21
|
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! |
06-15-2010, 11:41 AM | #6 | |
Junior Member
Join Date: Oct 2009
Posts: 21
|
Quote:
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" |
|
06-16-2010, 12:15 PM | #7 |
Junior Member
Join Date: Oct 2009
Posts: 21
|
Okay, my mistake - ispmgr returned error code:
Code:
<?xml version="1.0" encoding="UTF-8"?> <doc><error code="4" val="admin"> </error> ...etc ^^^^^^^^^^^ |
|
|