If im trying to create a new domain using Virtualmin API and in my URL i use the --web parameter, Virtualmin does not create the Administration username and domain creation fails with status code 256.
If i
m not using in my URL the --web parameter , Virtualmin creates the Administration username, domain, password, webmin login, dns and other settings, but because the --web is not present in the URL the newly created domain is not active.
Example: Using this URL without --web paramater Virtualmin is creating the administration username, domain, dns, and other settings: https://192.168.1.101:10000/virtual-server/remote.cgi?program=create-dom...
Using this URL with --web parameter, Virtualmin fails to create the Administration username and domain creation fails also: https://192.168.1.101:10000/virtual-server/remote.cgi?program=create-dom...
Can i fix this?
Comments
Submitted by JamieCameron on Fri, 02/01/2013 - 11:02 Comment #1
You need to change the
web
in those URLs toweb=
Submitted by Anturaju93 on Fri, 02/01/2013 - 11:35 Comment #2
I did, i tryed with web= and web , but no go, i get the same error. :(
Submitted by Anturaju93 on Fri, 02/01/2013 - 11:37 Comment #3
Tried just now with web= and i get : A website cannot be enabled without an administration user 192.168.1.101:10000/virtual-server/remote.cgi?program=create-domain&domain=abcdownload.ro&pass=daniel20&email=anturaju_daniel@yahoo.com&web=&dns&logrotate&mysql&webmin
Submitted by JamieCameron on Fri, 02/01/2013 - 13:09 Comment #4
You also need to add the params
&unix=&dir=&webmin=
Submitted by Anturaju93 on Fri, 02/01/2013 - 15:00 Comment #5
I finally figured out what was wrong (30 minutes ago) from my URL was missing this parameters: --unix (for creating the user) and --dir (for home dire creation) It work great now :) Thanks for the fast replayes.
Submitted by Anturaju93 on Fri, 02/01/2013 - 15:00 Comment #6