I am using the current version of Virtualmin and WHMC with the last release of Debian. I am trying to get WHMCS so when after the user selects to setup a new web hosting account I will be able to just click one button and have all the information transfered over to Virtualmin Gpl.
Posted 2014-06-17 22:31 by ptaylor
Project:
Virtualmin Virtual Servers
Component:
User Interface
Category:
support request
Assigned:
andreychek
Status:
active
Jump to: First unread comment Add new comment .
Operating System:
Debian 7 (Wheezy)
Description
I am trying to get the current version of Whmcs and Virtualmin to work so that when a account is added and I click on create it will add the account information to Virtualmin
For the Hostname: Do I put the hostname:port or just the hostname only? Ip Address do I put only the ip address or ipaddress:port number?
Should I click secure? What port should I be using? Is it the standard port 10000?
If I enable secure I get a error message telling me that the connection failed. If I leave it uncheck I get no message but its not adding the account to virtualmin fro Whmcs
Contents Documentation Home General Information System Requirements Installing WHMCS Upgrading Release Notes Further Security Steps Importing Data Licensing Common Troubleshooting Tips Key Aspects Clients Orders Products Domains Invoicing Transactions Support Tickets Messages & Emails Setup/Configuration General Settings Automation Settings Payment Gateways Admins/Permissions Products/Services Support Departments Developer Resources Client Area Templates Order Form Templates Language Files Action Hooks Widgets Creating Modules API
Search: Supported Features Create Suspend Unsuspend Terminate Yes Yes Yes Yes Change Package Change Password Usage Updates Client Area Link Yes Yes Yes Yes
Adding a Virtualmin Pro Server
The following steps guide you through the process of setting up a server in WHMCS for Virtualmin Pro Hosting Accounts. Begin by going to Setup > Products/Services > Servers Click Add New Server Enter the hostnamename:port, IP address:port, select the server type "Virtualmin" from the dropdown menu and enter a master admin, that can accept RPC/API calls, username and password for Virtualmin Click Create Server to complete the process and add your new Virtualmin Server Add server to Server Group if you have created one.
1newI already tried what is included above and if I include port number :10000 after the hostname and the ip address I am getting connection error. Can you please tell me the correct format and port number that should go in the hostname and ip address in WHMCS --> Servers?
Thank you Phil
After I click on create under product/services I am getting this error message
Module Command Error Unknown template name
In WHMCS under edit product --> Module settings
Template Name: FreeWebHosting Plan Name: FreeWebHosting
Virtualmin
Plan Name: FreeWebHosting
How can I fix this problem please?
Thanks
Howdy,
What is the output of these two commands:
virtualmin list-plans
virtualmin list-templates
That will show what Virtualmin thinks your templates and plans are, which will help in troubleshooting the issue you are seeing.
-Eric
Would you like for to type those commands in the shell command as root?
Here is the output that you requested.
root@va:~# virtualmin list-plans ID Name Quota Domains
0 Default Plan 1024 MB 0
140305363330526 FreeWebHosting 500 MB 1
root@va:~# virtualmin list-templates ID Description
0 Default Settings
1 Settings For Sub-Servers
This is the correct one.
virtualmin list-plans ID Name Quota Domains
0 Default Plan 1024 MB 0
140305363330526 FreeWebHosting 500 MB 1
virtualmin list-templates ID Description
0 Default Settings
1 Settings For Sub-Servers
I also posted here ---> http://pastebin.com/ndM1Q0uv
Yes, it's only possible to run the "virtualmin" command as root.
-Eric
Did you see the information that you requested earler
I also posted here ---> http://pastebin.com/ndM1Q0uv
When you ran "virtualmin list-templates", it didn't show a Server Template named "FreeWebHosting".
According to your settings above, it looks like WHMCS is configured to use "FreeWebHosting" as it's Server Template and Account Plan.
But it only looks like there is an Account Plan with that name, not a Server Template.
If that's correct, you may want to change the "Template Name" option in WHMCS to "Default Settings".
-Eric
How can I fix this?
Your system has 3.76 GB of memory, which is at or above the Virtualmin recommended minimum of 128 MB.
That isn't a problem, it's a good thing :-)
It's saying your system falls within the recommended amount of memory.
-Eric
If I click on list virtual servers I get this
Virtualmin's configuration has not been checked since it was last updated. Click the button below to verify it now. It should be show the list of Vertual Servers.
Re-check and refresh configuration button Manage Enable features plugins Button Edit Server Templates Button
I also changed Template Name and the Plan names in the whmcs to FreeWebHosting and I when I click on create in WHMCS I am get this:
Module Command Error Mail for the domain cannot be enabled unless an administration user is created
Do you know how I can fix this problem please?
You may want to try going into System Settings -> Re-Check Config, and make sure that it doesn't list any errors.
Also, regarding the error you're receiving from WHMCS -- that means it's trying to create a Virtual Server without an administrative user.
Is it possible that was somehow disabled from the Server Template?
If most of the changes you've made has been in the "FreeWebHosting" template/plan, and you haven't changed the default ones -- you may want to just try to get all this working with the default template/plan, and then once it's working, you could try switching to your customized plans and templates.
-Eric
I am using the default name in Virtualmin but I changed the default name in Whmcs. I also have the root username and password set in Whmcs for that server.
The status of your system is being checked to ensure that all enabled features are available, that the mail server is properly configured, and that quotas are active ..
Your system has 3.76 GB of memory, which is at or above the Virtualmin recommended minimum of 128 MB.
Virtualmin is configured to setup DNS zones, but this system is not setup to use itself as a DNS server. Either add 127.0.0.1 to the list of DNS servers, or turn off the BIND feature on the module config page. It appears that DHCP is being used to dynamically configure your network interfaces, which can cause the DNS servers to be set based on settings provided by the DHCP server. Using a static IP address is strongly recommended with Virtualmin.
What option do I need to enable in Virtualmin please?
Can you please clarify what settings should I be looking for in the server template?
Howdy,
You would want to do exactly what the error message says :-)
Either add 127.0.0.1 to the list of DNS servers, or turn off the BIND feature on the module config page.
You can either add "127.0.0.1" from within Virtualmin/Webmin, or you could just manually edit /etc/resolv.conf, and set that IP up as a nameserver along with any other IP's in there.
But if you aren't using your server as a DNS server, you can disable the BIND feature.
-Eric
Hello
I have a few questions:
Howdy,
You would want to do exactly what the error message says :-)
Either add 127.0.0.1 to the list of DNS servers, or turn off the BIND feature on the module config page.
You can either add "127.0.0.1" from within Virtualmin/Webmin, or you could just manually edit /etc/resolv.conf, and set that IP up as a nameserver along with any other IP's in there.
But if you aren't using your server as a DNS server, you can disable the BIND feature.
I want to make va.professionalwebhostingservices.com dns server available to the outside world so I can not add 127.0.0.1 for that same domain name. Where should the entry go and what entry do I need to add?
Can you tell me what is wrong with this?
Error I am getting is this Warning - errors were found in this domain's DNS records : This domain has email enabled, but none of the MX records point to it. Either the MX records should be corrected, or the email feature disabled if mail is hosted externally.
$ttl 38400 @ IN SOA va.professionalwebhostingservices.com. root.va.professionalwebhostingservices.com. ( 1403062539 10800 3600 604800 38400 ) @ IN NS va.professionalwebhostingservices.com. va.professionalwebhostingservices.com. IN A 192.168.0.191 www.va.professionalwebhostingservices.com. IN A 192.168.0.191 ftp.va.professionalwebhostingservices.com. IN A 192.168.0.191 m.va.professionalwebhostingservices.com. IN A 192.168.0.191 localhost.va.professionalwebhostingservices.com. IN A 127.0.0.1 webmail.va.professionalwebhostingservices.com. IN A 192.168.0.191 admin.va.professionalwebhostingservices.com. IN A 192.168.0.191 va.professionalwebhostingservices.com. IN MX 5 mail.va.professionalwebhostingservices.com. va.professionalwebhostingservices.com. IN TXT "v=spf1 a mx a:va.professionalwebhostingservices.com ip4:192.168.0.191 ?all" va.professionalwebhostingservices.com. IN A 98.175.102.203 mail.va.professionalwebhostingservices.com. IN A 98.175.102.203
The 98.175.102.203 sis my static ip address that is running Virtualmin on.
Howdy,
It sounds like Virtualmin isn't configured to understand your server's network setup.
What you would want to do is to go into System Settings -> Virtualmin Config -> Network Settings, and there, you would want to make sure that "Default IP address for DNS records" is set to "Automatically detect external address".
Also, adding "127.0.0.1" into /etc/resolv.conf doesn't prevent your server from acting as a nameserver to the outside world. Doing that tells your server that it is a nameserver, and that it can use itself for DNS lookups.
Without adding that entry, it won't work properly.
-Eric