Please delete this one post.

18 posts / 0 new
Last post
#1 Wed, 06/18/2014 - 10:25
ptaylor

Please delete this one post.

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.

1new

I 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

Wed, 06/18/2014 - 14:46
ptaylor

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

Wed, 06/18/2014 - 15:00
andreychek

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

Wed, 06/18/2014 - 15:08 (Reply to #3)
ptaylor

Would you like for to type those commands in the shell command as root?

Wed, 06/18/2014 - 16:57 (Reply to #4)
ptaylor

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

Wed, 06/18/2014 - 17:04 (Reply to #5)
ptaylor

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

Wed, 06/18/2014 - 15:37
andreychek

Yes, it's only possible to run the "virtualmin" command as root.

-Eric

Wed, 06/18/2014 - 17:27 (Reply to #7)
ptaylor

Did you see the information that you requested earler

I also posted here ---> http://pastebin.com/ndM1Q0uv

Wed, 06/18/2014 - 18:40
andreychek

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

Wed, 06/18/2014 - 20:10 (Reply to #9)
ptaylor

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.

Wed, 06/18/2014 - 22:59 (Reply to #10)
andreychek

That isn't a problem, it's a good thing :-)

It's saying your system falls within the recommended amount of memory.

-Eric

Thu, 06/19/2014 - 08:17 (Reply to #11)
ptaylor

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?

Thu, 06/19/2014 - 09:33
andreychek

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

Thu, 06/19/2014 - 10:09 (Reply to #13)
ptaylor

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?

Sat, 06/21/2014 - 01:01 (Reply to #14)
ptaylor

Can you please clarify what settings should I be looking for in the server template?

Thu, 06/19/2014 - 10:32
andreychek

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

Thu, 06/19/2014 - 13:27 (Reply to #16)
ptaylor

Hello

I have a few questions:

  1. I am not sure what your telling me to do here?

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?

  1. I am having a problem with this?

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.

Fri, 06/20/2014 - 09:51
andreychek

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