reseller configuration

June 10, 2019 307 views
DNS Backups CentOS

Hi,
I was thinking to start reselling shared hosting by buying VPS servers.
My questions are:

  • Should I install WHM and WHMCS in the VPS server while WHMCS and Cpanel accounts on a -detached volume?

  • Should install and register their licenses on a floating IP so that if the server’s hardware fails I set up a new server from backup and assign it the floating IP and attach it volumes where I stored WHMCS and Cpanel accounts?

  • What’s the best way to secure a backup for servers and volumes?

  • Having an IP assigned to my vps server, when I create my private nameservers ns1.example.com and ns2.example.com do they need both to point to my server’s IP? Is there any way that I can have 2 different IPs for my nameservers? If so how can I do that?

  • How can I replace your PTR with mine?

Sorry for so many questions, hope you can help so that I can start building my VPSs.

2 Answers

@rockeby

Block Storage (Volumes)

While Block Storage (volumes) can be used, I wouldn’t recommend using them as the primary storage medium for customer data. Instead, I would use them to store backup archives using cPanel/WHM’s built-in backup utility which allows you to define a custom backup path (i.e. the volume mount point).

The reason for this recommendation is due to how cPanel/WHM works. While our volumes can be detached and attached on-demand, if you’re hosting customer data on a volume and the system and user metadata do not exist on the server you’re attaching it to, the data won’t be visible within WHM.

Using volumes as a means of storing backups, however, would allow you to set up a new Droplet with cPanel/WHM, attach the volume, and then use WHM to restore each backup archive (system config, user accounts, profiles, etc).

Floating IP’s

Floating IP’s fall into a similar bucket. While you can detach and attach an IP on-demand, Floating IP’s do have some limitations–specifically, PTR records cannot be set and they cannot be used for outbound email. Additional details on Floating IP’s can be found here.

DNS (name servers)

cPanel offers a DNSOnly version of cPanel/WHM which can be installed on 2-3 Droplets without an additional license (as of this reply). This would allow you to set up redundant name servers in different locations and use WHM’s built-in DNS Cluster option to synchronize the DNS zones across multiple servers.

Using DNSOnly, you can work around using a single IP for DNS. While it does add to the overall cost, you can get by with 1GB Droplets (DNS doesn’t require much CPU or RAM unless you’re handling high levels of traffic.)

PTR Record

By default, the name that you set for your Droplet is set as your PTR record. You’ll want to edit the name of your Droplet to set the PTR to match your hostname.

  1. Visit https://cloud.digitalocean.com
  2. Click on the name of the Droplet you wish to rename
  3. On the Droplet overview page, click on the name of your Droplet to rename
  4. Once you’ve set the name of your Droplet, click on the checkmark to save

For your hostname, it’s recommended that it be set to an FQHN (fully-qualified hostname). For example:

host.domain.ext

You’ll want to avoid using cpanel, webmail, ftp, webdav, or similar in the hostname (these are reserved by cPanel/WHM).

-

Setup Recommendations

References

Hi jtittle ,

Thank you for precious recommendations, they’re very helpful.

  • If I have clearly understood you wouldn’t recommend to use block storages volume to store customers data only if my end is using them to attach them in other servers.
    But would you agree to use them as primary storage (i.e. Volume1) for customers data and adding a second volume (Volume2) to the server and using it as a backup of the primary storage (Volume_1)?

  • What is the best solution to reduce the failover at the minimum?

  • What is the best way to manage backups to reduce loss of data? For instance, in the event that one of my vps server’s hardware fails, how could I manage the recover of the system with same setting and without losing customer datas as well as my customers’ data (their accounts’ changes, new WHMCS and cpanel accounts.

Thank you again in advance for your help

Have another answer? Share your knowledge.