Installing FunnelFlux
FunnelFlux is self-hosted. You install it on a server you control, then point a domain at that server.
This article is the current install path: a fresh Ubuntu 24.04 LTS VPS and the ff1.sh → ff4.sh scripts.
Do not use shared hosting, cPanel, Plesk, or a machine that already serves other sites.
What you need
Section titled “What you need”- A new Ubuntu 24.04 LTS VPS with root (or sudo) SSH access.
- A domain or subdomain for your tracker, for example
tracker.example.com, managed in a Cloudflare account. The free plan is enough. - The licensed email and license key from your FunnelFlux account.
- Outbound internet from the server (package mirrors and license checks).
Recommended size: 2 vCPU, 4 GB RAM, and at least 50 GB SSD. Plans under about $20/month are usually too small.
We recommend:
- Vultr (referral link includes testing credit)
- DigitalOcean
Use an unmanaged VPS from one of those providers. You can resize it as traffic grows, and you install FunnelFlux yourself.
Vultr is the main pick for price to performance. It has regions in the US, EU, and Asia, and a later path to dedicated instances or bare metal on the same account. DigitalOcean is the other recommended unmanaged VPS.
Pick the datacenter near your traffic, not near you. Western Europe is a reasonable default for mixed global traffic.
When you create the VPS:
- OS: Ubuntu 24.04 LTS x64
- Enable provider backups if they offer them
- Attach an SSH key so you can log in as
root
More hardware notes: Minimum installation requirements.
Provider walkthroughs for creating the server: Install on Vultr and Install on DigitalOcean.
Overview
Section titled “Overview”| Step | What you do |
|---|---|
| 1 | Point your domain at the server in Cloudflare |
| 2 | SSH in and run ff1.sh |
| 3 | Run ff2.sh (databases) |
| 4 | Run ff3.sh (download and unpack FunnelFlux) |
| 5 | Finish install.php in the browser |
| 6 | Run ff4.sh (remove installer files) |
| 7 | Install the V2 UI |
Scripts live at https://licensing.funnelflux.com/installers/ubuntu_24/.
ff1.sh installs Nginx, PHP 8.4-FPM, ionCube Loader, MariaDB 10.11, ClickHouse, and Memcached, and turns on a UFW firewall.
How domains and SSL work
Section titled “How domains and SSL work”ff1.sh sets up Nginx as a catch-all: it answers on HTTP (port 80) and HTTPS (port 443) for any domain pointed at the server.
You never edit Nginx to add a domain.
Point a domain at the server and it works.
We recommend putting every domain behind Cloudflare. Cloudflare issues and renews the SSL certificates, so visitors get HTTPS on every tracking domain without certificates on your server. FunnelFlux reads the visitor IP and HTTPS status that Cloudflare forwards, so tracking still sees the real visitor.
If you cannot use Cloudflare, see Managing your own SSL certificates after finishing this guide.
1. Point your domain at the server in Cloudflare
Section titled “1. Point your domain at the server in Cloudflare”In Cloudflare, open the domain and go to DNS > Records. Add an A record for your tracker hostname with the VPS public IP, and leave Proxy status on Proxied (orange cloud):
tracker.example.com. A 203.0.113.10 ProxiedThen go to SSL/TLS > Overview and choose an encryption mode:
- Flexible (recommended): visitors use HTTPS to Cloudflare, and Cloudflare talks to your server over plain HTTP. Nothing to set up on the server.
- Full: Cloudflare also uses HTTPS to your server, with the self-signed certificate
ff1.shinstalls. Also nothing to set up, and the traffic between Cloudflare and your server is encrypted.
Do not choose Full (strict). It rejects the self-signed certificate, and the tracker returns Cloudflare error 526.
Turn off Cloudflare features that interfere with tracking links.
Add a rule for *tracker.example.com/* that sets Cache Level to Bypass, Security Level to Essentially Off, and Browser Integrity Check to Off.
Using Cloudflare DNS for your tracker has the full walkthrough.
2. Run system setup (ff1.sh)
Section titled “2. Run system setup (ff1.sh)”ssh root@YOUR_SERVER_IPThen:
wget https://licensing.funnelflux.com/installers/ubuntu_24/ff1.shbash ff1.shThis is non-interactive and takes 5–20 minutes, depending on the server. Leave the terminal open until it finishes. It updates the OS, installs the stack above, writes a temporary self-signed certificate, turns on the firewall, and enables FunnelFlux’s once-per-minute cron.
During the MariaDB install it prints one update-alternatives: error: no alternatives for my.cnf line.
That is harmless; the next line fixes it, so let the script keep running.
When it finishes, it prints the next commands.
If you do not use Cloudflare, it points you to Installing an SSL certificate on your server to do after the install.
With Cloudflare you can ignore that, because Cloudflare handles SSL.
Continue with ff2.sh below.
Re-run ff1.sh only if the first run failed.
Every run generates new database passwords and resets the firewall rules, so never re-run it after you have started ff2.sh.
Before continuing, check that the domain reaches the server through Cloudflare:
curl -I https://tracker.example.comAny response with a server: cloudflare header and no Cloudflare 52x error means the connection works.
A 200, 403 or 404 is normal at this point, because FunnelFlux is not unpacked yet.
Finish steps 3 to 6 in one sitting.
From ff2.sh until ff4.sh, the database password, the ClickHouse password and your license key sit in files in the web root.
The web server returns 404 for those files, but they stay on disk until ff4.sh removes them.
Two things are exposed during this time:
- After
ff3.sh,install.phpis public. Anyone who reaches it before you could complete it first, so finish the wizard right away. - The firewall leaves the database ports
3306and8123open. You close them after step 6.
3. Create application databases (ff2.sh)
Section titled “3. Create application databases (ff2.sh)”wget https://licensing.funnelflux.com/installers/ubuntu_24/ff2.shbash ff2.shThis creates MariaDB database flux_db and user flux_user, sets up ClickHouse access, and writes:
/usr/share/nginx/html/fluxdb.ini/usr/share/nginx/html/clickhouse-password.xml
The script prints the database password. Keep that terminal output until the wizard in step 5 has finished. The wizard prefills these values; you should not invent new database credentials.
4. Unpack FunnelFlux (ff3.sh)
Section titled “4. Unpack FunnelFlux (ff3.sh)”wget https://licensing.funnelflux.com/installers/ubuntu_24/ff3.shbash ff3.shIt asks for:
- Licensed email (the address the license is registered to)
- License key
It writes those into fluxlic.ini so the wizard can prefill them.
If latest_version.zip is not already in the current directory or /tmp, it downloads:
https://licensing.funnelflux.com/downloads/installers/latest_version.zipThen it unpacks the package into /usr/share/nginx/html/, including install.php and data.bin.
The script finishes by printing an install.php link for your domain and one for the server IP.
Use the domain link.
5. Complete the web installer
Section titled “5. Complete the web installer”Open:
https://tracker.example.com/install.phpUse your tracker domain, not the server IP. The license check attaches your license to the hostname you are on, and you sign in to FunnelFlux on that hostname from then on.
The first page unpacks data.bin.
That can take a minute on a small VPS.
Do not close the tab.
Then:
-
License: the license key and licensed email. These should already be filled from
ff3.sh. If they are empty, paste the same values you typed there. Click Next. The wizard checks the license with FunnelFlux. It fails if the key is expired or locked, the email does not match, or the license is already attached to another domain. -
Database: keep the prefilled values: host
localhost, nameflux_db, userflux_user, and the password fromff2.sh. Do not change the host to127.0.0.1. The database user only accepts connections addressed tolocalhost. Click Next. The wizard creates the tables and writesincludes/appConfig.php. Do not close the tab while it shows Initializing Database. -
Admin user: this is your FunnelFlux login, not a Linux user.
- Username: defaults to
admin - Password: choose a strong password and store it
- Email for notifications: prefilled with the license email
Click Create.
- Username: defaults to
The last page says the installation is ready and shows a Click here to login button.
It also tells you to delete install.php.
ff4.sh in the next step does that for you.
Sign in with the admin username and password you just created:
https://tracker.example.com/admin/login.php6. Remove installer files (ff4.sh)
Section titled “6. Remove installer files (ff4.sh)”Only after the wizard has completed:
wget https://licensing.funnelflux.com/installers/ubuntu_24/ff4.shbash ff4.shIt deletes install.php, install.log, data.bin, fluxdb.ini, fluxlic.ini, and clickhouse-password.xml from the web root, the installer’s PHP session files in cache/, and the downloaded ff*.sh scripts in your home directory.
It also tightens permissions under /usr/share/nginx/html.
If you run it too early, the web installer cannot finish.
At the end it prints the server IP as the access URL.
Use https://tracker.example.com/admin/login.php instead.
Close the database ports
Section titled “Close the database ports”ff1.sh allows ping and ports 22, 80, 443, 3306, and 8123 through the firewall.
FunnelFlux reaches MariaDB (3306) and ClickHouse (8123) on localhost, so neither port ever needs to be public.
-
Remove both rules:
Terminal window sudo ufw delete allow 3306/tcpsudo ufw delete allow 8123/tcp -
Check that only
22,80and443remain:Terminal window sudo ufw status
Re-running ff1.sh opens both ports again, so repeat these steps if you ever do.
7. Install the V2 UI
Section titled “7. Install the V2 UI”The encoded ZIP does not include the React admin UI.
cd /usr/share/nginx/htmlbash ./scripts/install-v2-ui-from-release.sh --latestThen open:
https://tracker.example.com/v2-ui/Sign in at /admin/login.php.
After login you land in the classic interface at /admin/.
Open /v2-ui/, or click V2 UI in the classic header, to use the V2 interface with the same session.
To list versions without installing:
bash ./scripts/install-v2-ui-from-release.sh --listAdding more tracking domains
Section titled “Adding more tracking domains”The catch-all Nginx setup serves every domain pointed at the server, so extra tracking domains need no server changes. For each domain:
- Add it to Cloudflare.
- Create a proxied A record with the server IP, as in step 1.
- Set the same SSL/TLS mode and the same tracking rule as your main domain.
- Load
https://new-domain.com/to confirm it reaches FunnelFlux, then use it in your tracking links.
Your license stays attached to the domain you installed on. Sign in to FunnelFlux on that domain; the other domains are for tracking links.
After install
Section titled “After install”Keep the server locked down:
- Run
ff4.shand close ports3306and8123before you do anything else on the server. - Store the FunnelFlux admin password in a password manager.
- Sign in to the server as root with an SSH key. Once key login works, consider turning off password login for SSH.
- Keep your VPS provider’s backups turned on.
- Use the server for FunnelFlux only.
Larger servers
Section titled “Larger servers”If the VPS is larger than 2 vCPU / 4 GB:
wget https://licensing.funnelflux.com/installers/ubuntu_24/optimize-server.shsudo bash optimize-server.shPick the preset closest to the real CPU and RAM. The preset list is in What server specifications do I need to handle X clicks per day?.
Next: Getting in to the tracker for the first time.
If the license key is rejected, see My license key is not accepted during installation.

