Billing and the store

Selling from more than one server

What this does: when you have several freePanel servers, one of them can run your store for all of them. Clients order in that one store, and their hosting accounts are made on whichever server you choose. Each account stays on the server it was made on.

When you need it: when one server is full, or you want servers in different places, but you want one store, one set of prices and one list of clients.

In this page, the store server is the server that runs your store, and the other server is the one you add to it. The examples use server.example.com as the store server and backup-2.example.net as the other server.

How it fits together

Three tools work together:

ToolWhere it isWhat it does
Linked serversServer > Linked servers, on both serversConnects the two servers safely, with a remote access key
Billing serversBilling setup > Billing servers, on the store serverLists the servers your store makes accounts on; details
Server groupsBilling setup > Server groups, on the store serverSays which servers each plan's new accounts go to; details

A remote access key is a long password, starting fpn_, that one server gives another so it may reach it. It reaches nothing else.

These steps are on the Linked servers page of each server, in the Server group of the admin panel.

  1. On the other server (backup-2.example.net), open Server > Linked servers and go to Remote access keys.
  2. Under Make a key, type a Name for the store server, such as store, tick Lets the other server's billing run accounts here, type your own password, and click Make the key. The key is shown only this once: click Copy the key, keep it somewhere safe for step 6, and click I have copied it. Also note This server's certificate fingerprint at the top of the card. A fingerprint is a short code that belongs to one server's certificate (its proof of identity), so you can check you are linking the right server.
  3. On the store server (server.example.com), open Server > Linked servers and go to Link a server.
  4. Type the other server's Address, for example https://backup-2.example.net:7443, and click Read its certificate.
  5. Check that the fingerprint shown is the same as the one you noted in step 2, and tick It is the same fingerprint as the one that server shows. If it is not the same, stop: something is in between.
  6. Type a Name, paste the Remote access key from step 2, type Your password (your own admin password on this store server), and click Link the server. You see "backup-2 is linked."

To add the other server to your store

  1. On the store server, open Billing setup > Billing servers.
  2. Under Add a linked server, choose the server in Linked server, for example backup-2.
  3. If you like, set Most accounts, for example 200.
  4. Click Add server. It is now in the Servers list.
The Servers card listing This server with 12 accounts and backup-2 with 3 accounts of at most 200

To send a plan's new accounts to the other server

  1. On the store server, open Billing setup > Server groups.
  2. Under Add a group, type a Name for the server group, such as Europe, and choose the Rule: Fewest accounts first or Fill in order.
  3. Tick the servers in the group, such as backup-2, and the plans that use it, such as Standard.
  4. Click Add group. From now on, each new Standard account is made on a server of this group.
The Add a group form of Server groups with the name Europe, the Rule, the servers This server and backup-2, and the plans

To turn billing off on the other server

The other server has its own store, which you no longer need. Send its visitors to your main store instead.

  1. On the other server, open Billing setup > Billing servers and scroll to Billing on this server.
  2. Tick Billing is off on this server.
  3. In Send customers to, type your main store's address, for example https://server.example.com:7444/store.
  4. Click Save changes. You see "Billing is off here: the store sends its visitors on."
The Billing on this server card with the Billing is off on this server tick box and the Send customers to box

If something goes wrong