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! |
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 |
Oh, sure.. I thought that API is only for ispmgr pro..
Nice, thanks! |
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! |
Error 4 means "Invalid value". One of the parametrs you entered has invalid format or value.
Please show full http-url. |
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" |
Okay, my mistake - ispmgr returned error code:
Code:
<?xml version="1.0" encoding="UTF-8"?> |
All times are GMT +2. The time now is 12:29 PM. |
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.