Create Domain API --web

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 im 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?

Status: 
Closed (fixed)

Comments

You need to change the web in those URLs to web=

I did, i tryed with web= and web , but no go, i get the same error. :(

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

You also need to add the params &unix=&dir=&webmin=

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.