Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt
hiddentrue

Creating additional Companies.

...


Table of Contents
Table of Contents
maxLevel6
minLevel2
outlinetrue
classtoc

About Addon Companies

Addon companies are a good alternative to purchasing additional licenses and maintaining separate installations. They allow for separate client bases, packages, order forms, extensions, branding and much more, all in the same installation. Staff can have access to one or more companies, and even have different roles in each company. Each company can be accessed at a different hostname, which makes it possible to run multiple companies from the same interface completely transparent to the customer. A standard Blesta installation contains one company.

Purchasing Addon Companies

To request additional company licenses simply log into the client area and click "Manage" next to the license you wish to purchase, then "Addons". Choose Addon Company, and complete the steps. Addon companies are immediately available to add within your Blesta installation after they have been paid for.

Creating a New Company

Note
titleAdditional companies require additional company licenses

You will only be able to add a new company if your license permits you. For example, if you're licensed for 5 companies you may only add up to 5.

To create an additional company, visit [Settings] > [System] > Companies. You will see a list of your existing companies. By default there will be 1 company that cannot be deleted, which is your initial, included company.

Image RemovedImage Added

Then, click the "Add Company" button in the upper right corner. The following form will be displayed:

Image RemovedImage Added

Enter the following details:

...

When finished, click "Create Company" to create the new company.

...

titleAdditional companies require additional company licenses

...

Configuring Company Hostnames

In order to get Blesta to load companies at the hostnames specified under [Settings] > [System] > Companies, it's necessary to point each hostname to the same document root. For example, if you

...

Purchasing Addon Companies

...

have Blesta installed at /var/www/html/, then each virtual host should point to this location. Each virtual host may have it's own IP address and SSL certificate, but they must all be on the same server, and point to the same document root. You'll also need to make sure the proper DNS records exist to point the hostnames to the correct IP address, typically this will be an A record.

We suggest when using multi-company, you use subdomains for your Blesta installation, otherwise it will not be possible to have different website content at each hostname.

Here is an example of virtualhost's as configured for Apache in httpd.conf for 2 companies, account.domain1.com on IP address 192.168.0.11 and account.domain2.com on IP address 192.168.0.12. Note how both point to the same document root, where Blesta is installed.

See https://httpd.apache.org/docs/2.4/vhosts/examples.html for more examples. Note that the important part is that the docroot is the same, and that Apache runs as the same user, so if a SuexecUserGroup is defined, they should be the same.

Code Block
themeEmacs
titlehttpd.conf
<VirtualHost 192.168.0.11:80>
DocumentRoot /var/www/html
ServerName account.domain1.com
<Directory "/var/www/html">
allow from all
Options -Indexes
</Directory>
</VirtualHost>
<VirtualHost 192.168.0.12:80>
DocumentRoot /var/www/html
ServerName account.domain2.com
<Directory "/var/www/html">
allow from all
Options -Indexes
</Directory>
</VirtualHost>

...