Hello, I am experiencing this weird error, when clients place orders and the payment is completed. I go to complete the order and trigger the virtualmin provisioning and it keeps giving me these errors in WHMCS… I checked virtualmin after it gave me the error on WHMCS and the virtual server was created successfully, its just not giving the right exit status code.
You are already hosting this domain
Adds a new Virtualmin virtual server, with the settings and features
specified on the command line.
virtualmin create-domain --domain domain.name
–pass “password-for-new-domain” |
–passfile password-file
[–hashpass]
[–parent domain.name | --alias domain.name |
–alias-with-mail domain.name |
–superdom domain.name]
[–desc description-for-domain]
[–email contact-email]
[–user new-unix-user]
[–group new-unix-group]
[–unix]
[–dir]
[–dns]
[–mail]
[–web]
[–webalizer]
[–ssl]
[–logrotate]
[–mysql]
[–ftp]
[–spam]
[–virus]
[–webmin]
[–virtualmin-awstats]
[–virtualmin-dav]
[–default-features] | [–features-from-plan]
[–allocate-ip | --ip virtual.ip.address |
–shared-ip existing.ip.address]
[–ip-already]
[–default-ip6 |
–shared-ip6 existing.ip.address |
–allocate-ip6 |
–ip6 virtual.ip.address]
[–ip6-already]
[–dns-ip address | --no-dns-ip]
[–max-doms domains|]
[–max-aliasdoms domains]
[–max-realdoms domains]
[–max-mailboxes boxes]
[–max-dbs databases]
[–max-aliases aliases]
[–template “name”]
[–plan “name”]
[–limits-from-plan]
[–suffix username-prefix]
[–db database-name]
[–fwdto email-address]
[–reseller name]
[–mysql-pass password]
[–skip-warnings]
[–letsencrypt]
[–field-name value]
[–enable-jail | --disable-jail]
[–mysql-server hostname]
Exit status: 256
This is the array it ran
Array
(
[program] => create-domain
[domain] => godaddy.com
[user] => godaddyc
[pass] => +GE:Pyr10T2r2a
[email] => patrickdenino@gmail.com
[template] => Default Settings
[plan] => Default Plan
[features-from-plan] =>
)
WHMCS error log
04/06/2019 21:26
Module Create Failed - Service ID: 1 - Error: You are already hosting this domain
REDRUM
04/06/2019 21:26
Running Module Create on Accept Pending Order
REDRUM
I dont get why its returning an error on WHMCS as on virtualmin the virtual server has been created its just not sending back the right exit status code…
I tried settings permission for the php.ini for so it could write to it but that did not help… I have been searching virtualmins & WHMCS documentation but still unable to find something relevant… Im assuming only the virtualmin veterans would know why this is happening.
If you got an idea as to why this is happening please let me know what it is, I am desperate at this point i would try anything… Been a few since any progress has been made.
Thanks in advance for the help.