Here we will show you how to use our scripts to assist installation of FunnelFlux on a VPS from DigitalOcean.

Note we now have a deployment manager and you should check if DigitalOcean is available in this first, as this is a much easier (and preferrred) way of installing FunnelFlux.

You can access the deployment manager by first going here to make sure you are logged in, then clicking deployment manager.


To kick things off, head over to DigitalOcean and log in or register an account.

Step 1: Start creating a droplet

After having created an account at DigitalOcean, click the create button > droplets


Step 2: Pick your distribution

Select CentOS 7.4 x64 as your OS image


Step 3: Pick server size

We recommend starting with a $20 standard server:

We recommend a strict minimum of 2048MB of memory and 2 CPU (regardless of how low your traffic volume might be). 

For 100,000 visitors per day, you should select at least 4 vCPU i.e. the $40/mo droplet

For 200,000 to 1 M visitors per day, select a server between 8 to 16 cpu and a minimum of 16GB of memory.

If you plan to send more than 1 million visitors per day through your FunnelFlux, then it would be wise to select a server with at least 16 vCPU.

Then, pick a region - we recommend either Amsterdam or New York.

Give your server a name, e.g. flux-tracker then click create.


Step 4: Dealing with DNS configuration

While your server is being created, you will point your domain name to it.

Go back to your dashboard and click your newly created droplet. On it's dashboard you can see the server IP:


Wait for the IP to become available, then copy it to the clipboard. Use the IP, not the private or floating IP.

Note: we recommend using CloudFlare for DNS -- it is not wise to use DNS based on your specific server (i.e. using your server as the nameserver).

You can see our Cloudflare tutorial here - best to look at this article for full DNS instructions, especially if you are not familiar with DNS configuration for domains.


Step 5: Getting SSH access to your server

From your server page you will see a console button that will let you access the SSH console for this server. 

However at this stage we highly recommend you grab a local SSH client, e.g.

Whatever software you use, create a new connection to your server IP, use SSH (version 2 if available), username root and copy/paste in the password provided to you via email when you deployed the server.

If you don't want to use such software, use the "View Console" button:

This will open a Shell Window:

You will then have the opportunity to login. 

Use the root username and password to login. Unfortunately this virtual console does not support copy/paste, so you will have to write it manually (hence why we would recommend using proper software). It's also slow to use.

Note that in Linux terminals, password entry won't show keystrokes - so its normal to not see anything as you type.

If you use an external SSH client like Putty you can put the username/password into the interface before connecting, so you'd skip this step. Otherwise, you'd be able to use the command line:

ssh root@YOUR-SERVER-IP-ADDRESS


Step 6: Starting automated installation of FunnelFlux

After having logged in, lets run through some initial commands specific to DigitalOcean. We'll need to do these for our scripts to work. Note that you should wait at least 5 min after deploying your server to ensure it is not still running some installation processes.

Firstly:

vi /etc/sysconfig/selinux

You will need to manually change selinux status to "SELINUX=disabled" in the editor. Generally in vi editor you tap i to enter edit mode, then can hit Esc  or Ctrl+c  to exit, and type :wq  to save and exit (w = write, q = quit).

Once done, restart your server via the DigitalOcean control panel or typing restart  and hitting enter in your SSH terminal.

You'll get disconnected and will need to reconnect - wait a minute or so.

Once reconnected, confirm the status of SELINUX by running sestatus . This should print out that it is disabled.

Next, run this:

yum install wget

From here, we can move on to our actual installation scripts!

wget http://assets.funnelflux.com/tools/confs/centos7/ff1.sh

If you entered it correctly, you will see a message like the one below:

"ff1.sh" saved [5304/5304]


Now, type the following command:

sh ff1.sh

Final Notes

A few other commands will have to be typed, and these commands will be displayed in the shell window. 

Make sure you follow all of them.

For example, once the above script installs, you will be asked to do the same but with ff2.sh, i.e. 

wget http://assets.funnelflux.com/tools/confs/centos7/ff2.sh

followed by:

sh ff2.sh

Note that you can press the up arrow key to cycle through previous commands, thus can easily go back to the ff1.sh command and edit it to ff2.sh (much easier!).

You will later get asked to execute ff4.sh as well. 

Be sure to read the instructions as this is a cleanup script and you need to take some actions before running it.
Overall, our scripts will optimize your server, download FunnelFlux and install it for you.

Just follow the instructions displayed in the shell window until you reach the end!

Did this answer your question?