Submitted by ttalbot on Thu, 10/11/2012 - 01:37
I have a VM server running WHMCS, provisioning domains on a second server running VM, but with that second server using the virtualmin-nginx module for hosting what will be essentially static sites. (For resource allocation, this seems far preferable to me than using Apache.)
When I attempt to provision a domain from WHMCS I get the error:
Order Accept Encountered Problems Nginx cannot be enabled for a domain without a Unix user
If I create a domain manually on the second server, it is provisioned fine, along with an nginx website and a Unix user. I don't see any other switches to toggle for this.
How can I get WHCMS working with Virtualmin + Nginx?
Cheers
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Thu, 10/11/2012 - 11:15 Comment #1
You may have to ask the WHMCS developers about this - they are probably calling the Virtualmin API with the wrong parameters, like
web=
instead ofvirtualmin-nginx=
Submitted by ttalbot on Tue, 10/23/2012 - 10:45 Comment #2
Well, this is taking a very long time to resolve. Here is what WHMCS support now has to say. Would you help me respond? I don't know what the sequence of API calls is here or what needs to be done.
Would you contact them as well? There must be some way to resolve this.
What can we do? I would really like to move forward with this project.
--
Hello
Sorry for the delay you have faced. This module is calling the API command currently: $postfields["program"] = "create-domain";
Could you please advise what command needs to be called for it to create a nginx account also?
If you have any further questions, just let us know.
Regards,
Liam
Developer
Forums: http://forums.whmcs.com/ Documentation: http://docs.whmcs.com/ Video Tutorials: http://whmcs.com/tutorials.php
Ticket ID: #968689 Subject: can't provision via WHMCS for Virtualmin + nginx Status: Answered
Ticket URL: https://www.whmcs.com/members/viewticket.php?tid=968689&c=BVqE9nbV
Submitted by ttalbot on Wed, 10/24/2012 - 10:17 Comment #3
And now another follow up from WHMCS support. Can I please get some help resolving this?
Thanks
Hello
I have added the command they requested however we are still getting the same error, could you please request they advise on the missing commands they need? this is the array we are posting: Array ( [program] => create-domain [virtualmin-nginx] => [domain] => test2.com [user] => testcom1 [pass] => g7PF7k2j3q [email] => terrencetalbot@gmail.com [template] => Standard_Hosting [plan] => Standard_Hosting_Plan [features-from-plan] => )
Here is information on the create-domain that is being used: http://www.virtualmin.com/documentation/developer/cli/create_domain
Regards,
Liam
Developer
Forums: http://forums.whmcs.com/ Documentation: http://docs.whmcs.com/ Video Tutorials: http://whmcs.com/tutorials.php
Ticket ID: #968689 Subject: can't provision via WHMCS for Virtualmin + nginx Status: Answered
Ticket URL: https://www.whmcs.com/members/viewticket.php?tid=968689&c=BVqE9nbV
Submitted by ttalbot on Wed, 10/24/2012 - 10:17 Comment #4
And now another follow up from WHMCS support. Can I please get some help resolving this?
Thanks
Hello
I have added the command they requested however we are still getting the same error, could you please request they advise on the missing commands they need? this is the array we are posting: Array ( [program] => create-domain [virtualmin-nginx] => [domain] => test2.com [user] => testcom1 [pass] => g7PF7k2j3q [email] => terrencetalbot@gmail.com [template] => Standard_Hosting [plan] => Standard_Hosting_Plan [features-from-plan] => )
Here is information on the create-domain that is being used: http://www.virtualmin.com/documentation/developer/cli/create_domain
Regards,
Liam
Developer
Forums: http://forums.whmcs.com/ Documentation: http://docs.whmcs.com/ Video Tutorials: http://whmcs.com/tutorials.php
Ticket ID: #968689 Subject: can't provision via WHMCS for Virtualmin + nginx Status: Answered
Ticket URL: https://www.whmcs.com/members/viewticket.php?tid=968689&c=BVqE9nbV
Submitted by ttalbot on Wed, 10/24/2012 - 12:52 Comment #5
OK, if I try this myself on the command-line as root, I get the same error result as WHMCS:
virtualmin create-domain --domain test2.com --user testcom1 --pass g7PF7k2j3q --email terrencetalbot@gmail.com --template Standard_Hosting --plan Standard_Hosting_Plan --features-from-plan --virtualmin-nginx Nginx cannot be enabled for a domain without a Unix user
What is wrong here?
Submitted by JamieCameron on Wed, 10/24/2012 - 13:06 Comment #6
Does the plan have the "Administration user" feature checked?
Submitted by ttalbot on Wed, 10/24/2012 - 13:10 Comment #7
I don't think this is a WHMCS problem any more. I cannot get it to run, as root, on the command-line.
root@x1:~# virtualmin create-domain --domain test2.com --user testcom1 --pass g7PF7k2j3q --email terrencetalbot@gmail.com --template Standard_Hosting --plan Standard_Hosting_Plan --features-from-plan --virtualmin-nginx
Nginx cannot be enabled for a domain without a Unix user
Yet, --user and --pass are specified right there. This seems like a bug in your script in that it is not doing things in the right order, though it does work if you use the web interface. I don't know enough about Virtualmin to know where the real problem is.
Please may I get some help on this so I can move forward?
Cheers
Submitted by andreychek on Wed, 10/24/2012 - 13:14 Comment #8
Did you have any thoughts on Jamie's question above, regarding whether the plan you're using has the "Administration User" feature checked?
Submitted by ttalbot on Wed, 10/24/2012 - 13:16 Comment #9
OK, just saw this response. No, it did not. Now it does.
And now the error is:
A domain cannot have an administration user without a home directory
So I'll turn that on...
Ah ha! That did it, at least from the command-line. Now let's see if we can make WHMCS happy.
Is this documented anywhere? I love Virtualmin but the documentation is really sparse. Apologies if I missed this, though it would be good to update the nginx docs page.
Submitted by ttalbot on Wed, 10/24/2012 - 13:29 Comment #10
OK, I guess this is resolved. Would be nice if it hadn't taken two weeks to get to the right question. Still, I'm glad it is.
Submitted by JamieCameron on Wed, 10/24/2012 - 23:23 Comment #11
I think the WHMCS docs assume that you will have a default Virtualmin install with Apache, and that the selected plan will be using the default features.
Submitted by ttalbot on Sat, 10/27/2012 - 18:12 Comment #12