If we want to test ClusterCS on a virtual machine, at our home, we must do the following:

1 step: The creation of a virtual machine

2 step: Port Forward in our Router

3 step: Accessing the www.clustercs.com site

4 step: Add our server in Server section

5 step: ClusterCS Install Checkup

6 step: Server SETUP

Advanced setup of the server

Some of the plusses ClusterCS has

1 step: The creation of a virtual machine

Please configure the VirtualBox adaptor so an Intern IP from the same class as your device can be alocated:

Click right on our virtual machine in VirtualBox -> choose Settings -> go to Network where we must have:

Attached to: Bridged Adaptor, and on Named the LAN interface (the network board or the wireless, depends on the internet we use on our device and where the virtual machine is instaled).

Network Setup

Next, we install CentOS 6.8, and after the installation is completed, we must verify what intern IP was allocated to your virtual machine: to do this: to do this, in the terminal we write the command: ifconfig

After the OS is installed and you detect your Internal IP, you must open some ports from your router using Port Forward so our virtual machine could be accessible form outside.

ifgonfig command

2 step:Port Forward in your Router

1) You access your router in a browser

Router acces in browser

If you don't know how to access our router, it is better to read the user manual where you'll find the default IP / user and the pasword.

You can find the user manual on google, we need just to write the model of our router followed by the word manual.

Click for exemple

How to search the router manual

2) Go to Forwarding where you must add the following ports:

  • Port 22 – for ssh.
  • Port 3306 – remote connection to mysql for installation of databases rcm/postfix etc.
  • Port 80 – http for the web connection
  • 25,465,993,143,110 – for email

3) The port adding

Click on Add New…, where:

Service Port - is the external port of the protocol/ssh service, choose 22 for the internal port - ssh 22 (you can choose another port ex: 2222 so that the ssh can be accessed externally through another port)

Internal Port - the internal port of the protocol/service, in our case ssh 22

IP Address - the internal port of your virtual machine

Protocol - leave All

Status - Enabled

Add port steps Add port steps

Do this steps for the each port mentioned at Step 1, point 2, until, at the end, you have:

Add port steps

4) Test if you can access your virtual machine from outside:

- first, you must check which is your IP, open a browser and type in google: what is my ip.

Our external IP is 86.127.127.127 which we'll use it to connect from outside to our virtual machine.

Test if you can access the virtual machine from outside

Open Putty.exe - you can download it from https://the.earth.li/~sgtatham/putty/latest/x86/putty.exe

Now follow the next steps:

Hostname : your external IP

Port: your port chosen for the ssh connection from outside (see step 1, point 3)

If you can connect with the SSH using the external IP and the SSH port, then you can go to the next step.

If you can't connect, you must double-check if all the above steps are done properly.

Putty configuration

3 step: Accessing www.clustercs.com

We go to www.clustercs.com , register and purchase the free plan.

Accessing ClusterCS

4 step: Add our server in Server section as fallow:

  1. Click on ClusterCS control panel – button placed on the top of the page
  2. Click after on Servers where it will appear:

As you can see, for a 1 server license, here, you will be adding the server created in your virtual machine using the credentials:

  1. Server IP in our case the public IP
  2. SSH Port in our case 22
  3. User: root
  4. Login type (here you have 2 login types: based on password or based on ssh key), in our case we chose Password
  5. Password - root password
  6. Hostname it is optional, but you can add a name to your server.

After you entered the above data we can move to the next step by pressing the NEXT button.

One server license Server setup

5 step: ClusterCS Install Checkup

In the next step the ClusterCS panel checks if our server can be accesses and if the linux distribution, in ur case CentOS 6.8, is compatible.

After, we click CONTINUE TO SETUP.

Server is ok for setup

6 step: Server SETUP

Setup Name: a name will be introduced which will be added to our server in ClusterCS, so that it can be easy indentified.

Recipe: We chose Standard Web Server (LAMP is what ClusterCS.com is recommended to us).

Click SAVE (see below for advanced setup )

Server setup

Advanced setup of the server

  • Firewall - what type of Firewall to use (default ip tables and fail2ban)
  • Smart Traffic Manager – the manager type which will administrate the traffic of our server (default haproxy)
  • WebServer – this is the best part, where you can work with apache, nginx, lighttpd in in parallel depending the files type, statics or dinamics, optimizing in this way the page loading.
  • Database – mysql
  • Email – postfix
  • Webmail – default is roundcube
  • Storage – storage_location and proftpd for ftp

After we've made our setup, click SAVE and after that OK to create the installation package according to our settings. Click OK, then again OK.

Execute install command Build in progress

Now, the compilation and configuration process has begun.Click for details

There is event an system to view, in real time, the progress instalation of our packages View progress).

At this moment we must wait until the ClusterCS platform will compile and configure the packages.

Configuration in progress

Your server is configured and ready to be used.

You can add domains, databases, emails.

Operational server

The added value of ClusterCS

1. Firewall administration from the ClusterCS control panel.

A nice part is the Firewall one, which you can administrate from ClusterCS through just one click.

You must just to click on the Firewall button located in the right side of the added server - section Servers.

Firewall
ClusterCS rules
Add new firewall rule

2. Domain administration

The domains are administrated from the ClusterCS control panel without the knowledge of server administration, all you must do is to add a domain/subdomain in the ClusterCS control panel and afetr that, to access it:

Domains

2.1 Adding/deleting the emails

In the add domain, click Emails wher you will see different options: accounts vizualization, accounts editing and, also, adding some new accounts.

For accessing the emails from browser, access webmail.domainname.ro in our case http://webmail.clustercstest.example.org

Add emails address

2.2 Database administration (mysql)

Databases
2.2.1 Creating a user database
Database user create
2.2.2 Creating a database and associating with a user database
Database create
2.2.3 Assigning a database to a user

Click on Associate button after which, all the needed right will be granted (in our case - all).

Asociate an database to an user
Asociate an database to an user
Asociate an database to an user

Click on Check All button and after on Associate User button.

2.3 Cronjobs

We all need automation, imports/feeds/updates,so this section is dedicated to cronjobs you want the server automatically make them, at a set time.

Cronjobs

2.4 DNS zone management

DNS

2.5 Adding aliases to the domain

Aliases

2.6 Pages load optimization using apache + nginx + lighttpd

This section is dedicated to optimizing pages, ClusterCS.com is the first Control Panel that offers such a feature

With the help of this section you can configure how you want the pages of your site to be served.

Aliases
Aliases

3. Server raports

Server raports
Server raports
Server raports

4. Accessing a test domain using hosts

Open from Start NOTEPAD as administrator (run as administrator) and open the hosts file from C:\Windows\System32\drivers\etc

4.1 Open Notepad as Administrator (click right on Notepad and it will appear Run as Administrator)

Accesing a domain

4.2 We go in Notepad -> File -> Open and we open:

c:\windows\system32\drivers\etc\hosts

Accesing a domain

4.3 Add at the end of the file:

IP domain name, in our case: 86.127.127.127 www.clustercstest.example.org example.org webmail.example.org

Where:

  1. 86.127.127.127 – ip-ul extern
  2. www.clustercstest.example.org – the domain added in clustercs.com
  3. clustercstest.example.org – domain without www
  4. webmail.clustercstest.example.org – domain for webmail

After that SAVE

Accesing a domain