Installation¶
This section describes how to install XLTable, obtain a license and configure system access. Connections to analytical databases are described on the Database connections page.
XLTable can be deployed on Linux, Windows 10 / 11 or Windows Server and supports integration with Active Directory and multiple databases.
Linux¶
XLTable can be installed on modern Linux distributions. Ubuntu 22.04+ is recommended for production environments.
Prerequisites¶
Ubuntu 22.04+ server with
sudoaccessNetwork access to analytical databases
Open ports 80 or 443 for Excel clients
XLTable distribution zip placed in
/usr/olap/(e.g.xltable-1.0.0-ubuntu.zip)
Prepare system¶
Create working directory:
sudo mkdir /usr/olap
sudo chmod a+rwx /usr/olap
Install XLTable¶
Copy the XLTable distribution zip and the installer to the server:
scp xltable-*-ubuntu.zip install_ubuntu.zip user@server:/usr/olap/
Unpack the installer scripts and run the install script:
cd /usr/olap
unzip -o install_ubuntu.zip
bash install_xltable.sh
The script will:
Install
supervisor,nginx,unzipExtract xltable to
/usr/olap/xltable/Create
/usr/olap/xltable/setting/settings.jsonfrom the example (if missing)Configure supervisor to autostart several xltable worker processes (one per CPU core, up to 4 by default)
Configure nginx on port 80 as a load balancer across the worker processes (ports 5000, 5001, …)
Note
Several worker processes are what lets heavy reports from many concurrent
users be built in parallel: Python limits one process to one CPU core for
result building, so the instance count is effectively the number of large
reports the server can render at the same time. All instances share the
same cache and settings.json. To change the count, re-run the installer
with the desired number — the existing configuration and settings are kept:
XLTABLE_INSTANCES=6 bash install_xltable.sh
Set up connections with database (configuration examples in the folder /usr/olap/xltable/setting):
nano /usr/olap/xltable/setting/settings.json
Example of a minimal settings.json:
{
"SERVER_DB": "ClickHouse",
"CREDENTIAL_DB": {
"user": "..",
"password": "..",
"host": "..",
"port": "8443",
"secure": true,
"verify": true,
"query_timeout": 60
},
"WRITE_LOG": false,
"MAX_CELLS": 100000,
"OVERLOAD_GUARD": {
"MAX_MEMORY_PERCENT": 90,
"MAX_CPU_PERCENT": 95,
"MIN_FREE_DISK_MB": 512
},
"CONVERT_FIELDS_TO_STRING": true,
"USERS": {"user1": "pass1", "user2": "pass2"},
"USER_GROUPS": {"user1": ["olap_users", "olap_admins"], "user2": ["olap_users"]},
"ADMIN_GROUPS": ["olap_admins"]
}
Note
Changes to settings.json are picked up automatically within a few
seconds of saving — no service restart is required (see
settings.json reference).
Upgrading version¶
Copy the new distribution zip to the server (remove or replace any previous zip first):
scp xltable-*-ubuntu.zip user@server:/usr/olap/
Run the update script:
cd /usr/olap
bash update_xltable.sh
The script will:
Verify the zip integrity
Back up
settings.json, the.liclicense file and the local cubes folder (CUBES_FOLDER, defaultcubes/) to/usr/olap/backup_<timestamp>/Stop the service and replace the xltable installation
Restore the backed-up config, license files and local cubes
Set file ownership to the service user from the supervisor config
Restart the service and show its status
The backup folder is kept after the update — remove it once you have confirmed the new version works.
Service Management¶
Action |
Command |
|---|---|
Start |
|
Stop |
|
Restart |
|
Status |
|
Logs |
|
olap:* addresses every worker process of the service; it also works on
installations that still run the old single-process configuration.
Windows 10 / 11¶
On Windows 10 / 11 XLTable runs as a standalone executable — no additional components are required. This is the fastest way to get started (see also Quickstart); for production deployments on Windows Server with IIS, see Windows Server (IIS).
Installation¶
Download the distribution archive and extract it to a folder of your choice, e.g.
C:\xltable\Edit the configuration file
C:\xltable\setting\settings.json(database connection, users — see Database connections and settings.json reference)Start the server by double-clicking
main.exe(or from the command line):C:\xltable\main.exe
Open the admin panel in your browser at
http://127.0.0.1:5000/adminand activate the license (see Obtaining a license)In Excel, connect to the server at
http://127.0.0.1:5000(prefer127.0.0.1overlocalhost— see the note in Connecting Excel)
Connecting from other computers¶
To let Excel users on other machines connect, allow inbound TCP port 5000 in Windows Firewall (run as administrator):
netsh advfirewall firewall add rule name="xltable" dir=in action=allow protocol=TCP localport=5000
They can then connect to http://<server-name-or-ip>:5000.
Autostart¶
To start the server automatically at logon, put a shortcut to main.exe
into the Startup folder: press Win+R, type shell:startup, and copy
the shortcut there. For unattended servers, use Task Scheduler
(trigger At startup, action — run C:\xltable\main.exe).
Update¶
Stop
main.exe(close the window or end the process in Task Manager)Back up
settings.jsonand the license file.licExtract the new distribution archive into
C:\xltable\, overwriting existing filesRestore the backed-up
settings.jsonand.licStart
main.exe
Windows Server (IIS)¶
XLTable can be installed on Windows Server 2019+ behind IIS. For a quick setup without IIS, the standalone installation described in Windows 10 / 11 also works on Windows Server.
Prerequisites¶
IIS Roles and Features (Server Manager → Add Roles and Features):
Role: Web Server (IIS)
Under Web Server → Application Development: enable CGI (also enables FastCGI)
Under Web Server → Security: enable Windows Authentication and Basic Authentication
Network access to analytical databases
Open ports 80 or 443 for Excel clients
Installation¶
1. Install Python 3.12.6
Download and install Python 3.12.6 for Windows (64-bit). During installation, check “Add Python to PATH”.
2. Create the application folder
mkdir C:\olap
3. Extract the distribution archive
Copy the distribution archive into C:\olap, then extract it:
cd C:\olap
tar -xf xltable-<version>-windows_server.zip
The application folder will be at C:\olap\xltable\.
4. Create a virtual environment
cd C:\olap\xltable
python -m venv .venv
5. Install dependencies
C:\olap\xltable\.venv\Scripts\pip install -r requirements.txt
6. Configure settings
Edit the configuration file C:\olap\xltable\setting\settings.json and fill in all required fields (database connections, license path, etc.).
7. Configure IIS with web.config
Use the file C:\olap\xltable\web.config. It configures FastCGI to run the application via the virtual environment Python interpreter.
Authentication is set to Windows Authentication and Basic Authentication (anonymous access disabled).
8. Register the FastCGI application in IIS
Open IIS Manager → server node → FastCGI Settings → Add Application:
Full Path:
C:\olap\xltable\.venv\Scripts\python.exeArguments:
C:\olap\xltable\.venv\Lib\site-packages\wfastcgi.py
9. Point the IIS site to the application
In IIS Manager → Sites, select Default Web Site (or create a dedicated site):
Basic Settings → Physical Path:
C:\olap\xltableAuthentication: disable Anonymous Authentication, enable Windows Authentication and Basic Authentication (matches the
web.configfrom step 7)Restart the site
10. Verify
Open the admin panel in a browser at http://127.0.0.1/admin.
In Excel, connect to the server at http://<server-name>/.
Update¶
Stop the IIS application pool (IIS Manager → Application Pools → Stop)
Back up
settings.jsonand the license file.licExtract the new distribution archive into
C:\olap\xltable\, overwriting existing filesRestore the backed-up
settings.jsonand.licUpdate dependencies (skip if
requirements.txtdid not change):C:\olap\xltable\.venv\Scripts\pip install -r C:\olap\xltable\requirements.txt
Start the application pool
Obtaining a license¶
XLTable requires a license file (.lic) to serve requests. A trial
license is issued free of charge:
Install and start XLTable, then open the admin panel at
http://<server>/admin(see Admin panel) and go to the License tab.Copy the server id shown there.
Send it to help@xltable.com or Telegram https://t.me/XLTable — we will issue you a trial license.
Upload the received
.licfile using the form on the License tab.
The License tab also shows the current license details and, for licenses limited by named users, the occupied seats. Licensing is per named user — see FAQ for how seats are counted and released.
When upgrading XLTable, keep the .lic file together with
settings.json — both are backed up and restored by the update procedure.
Authentication¶
XLTable supports two authorization modes: local authentication
defined in settings.json and integration with Active Directory(LDAP).
Active Directory integration¶
XLTable supports authentication and authorization using Microsoft Active Directory.
Active Directory integration allows you to: - Authenticate users automatically - Map AD users and groups to XLTable roles - Centralize access management
To enable Active Directory authentication, configure the corresponding
section in the settings.json file.
This section defines connection parameters to the domain controller, account for looking up user information, group mapping rules and other LDAP parameters.
Example structure:
"CREDENTIAL_ACTIVE_DIRECTORY": {
"server_address": "dc.company.org",
"domain": "company",
"domain_full": "company.org",
"username": "service_olap",
"password": "...",
"access_groups": ["olap_users_all", "olap_users_sales", "olap_users_accounting"]
}
Admin panel¶
XLTable includes a built-in admin panel for monitoring and managing the server.
URL¶
The admin panel is available at:
http://<server>/admin
Access is granted to users who belong to a group listed in ADMIN_GROUPS.
Configure admin access¶
Add the ADMIN_GROUPS section to settings.json:
"ADMIN_GROUPS": ["olap_admins"]
To access the admin panel, log in as a user whose group is listed in ADMIN_GROUPS.
For local users, the group is assigned via USER_GROUPS; for AD users — via Active Directory group membership.
Features¶
The admin panel is organized into tabs:
Status — confirms the server is running, shows the active database backend, the active cache backend (
sqlite— cache local to this machine, orrediswith the server address — cache shared by the whole cluster; the actual mode after a possible fallback, see Caching) and the settings file in use with the time it was last loaded (settings.jsonis re-read automatically when it changes, see settings.json reference).License — current license details, the server ID to send to the vendor when requesting a license, and the license file upload form. If the license limits the number of named users, this tab also shows the named user seats: which users occupy the licensed seats, when each was first and last seen, and a Release button per seat. Licensing is per named user — a seat is taken on the first request of a user and is not freed by signing out or clearing the cache; it is released automatically after a period of inactivity defined by the license (30 days by default) or manually with the Release button (which also signs that user out). When all seats are taken, a new user gets a clear “Named user limit reached” message in Excel.
Cache — cache overview and management (how the cache is organized is described in Caching):
a per-user table showing active sessions, the number of cached entries and the time of the last activity, with a Sign out button that drops the sessions of a single user without affecting the others;
statistics of the shared SQL result cache (entries, size, hit rate). Hit/miss counters accumulate since the last reset — they survive restarts and cache clearing; the Reset stats button starts counting from zero, without touching the cached entries;
Clear Metadata Cache — removes cached cube definitions, schema lists and query results while keeping users signed in. Use it after editing a cube so the new definition is picked up immediately (it is also picked up automatically within
METADATA_CACHE_TTL);Clear All Cache — removes all cached session data. Users will need to re-authenticate after the cache is cleared.
Resources — direct links to the XLTable documentation and support.
Database connections¶
XLTable connects directly to analytical databases and executes SQL queries
on their side. All connections are defined centrally in the settings.json
file and reused across OLAP cubes — configuration examples for every
supported database are collected on the Database connections page.
Scaling to multiple servers (Redis cache)¶
A single XLTable machine already runs several worker processes behind nginx
(see Linux). When one machine is not enough, run XLTable on
several servers and let them share one cache through Redis: set
CACHE_BACKEND to redis in settings.json on every server.
"CACHE_BACKEND": "redis",
"REDIS_URL": "redis://:yourpassword@redis-host:6379/0"
With a shared cache every server can handle every request, so a load balancer in front of the servers needs no sticky sessions — plain round-robin works:
upstream xltable {
least_conn;
server 10.0.0.11:80;
server 10.0.0.12:80;
}
server {
listen 80;
client_max_body_size 16m;
location / {
proxy_pass http://xltable;
proxy_read_timeout 600s; # heavy reports may run for minutes
proxy_set_header Authorization $http_authorization;
}
}
What the shared cache gives you:
a session opened through one server is valid on all of them — Excel refreshes keep working no matter where the balancer sends them;
Cancel works across servers: a query started on one server can be cancelled by a request that lands on another (except Databricks and embedded DuckDB, where the query is interrupted in-process and the Cancel request must reach the server process running the query);
the licensed named-user seats are counted across all servers, not per server — the seat registry is shared by the whole cluster;
Clear All Cache / Clear Metadata Cache in the admin panel of any server take effect for the whole cluster.
Warning
settings.jsonmust be identical on all servers. Every server checks a fingerprint of its configuration against the shared cache and clears the cache on mismatch — servers with different configurations would keep wiping the cache for each other. Deploy configuration changes to all servers together.The Redis instance must not be reachable by anyone but the XLTable servers: protect it with a password (
requirepass/ ACL), keep it on a private network. Cached entries carry session authorization state, and anyone able to write to this Redis can effectively execute code on the XLTable servers.
When CACHE_BACKEND is not set (or set to sqlite), XLTable keeps the
default single-machine cache shared by the worker processes of that machine.
If the redis backend is misconfigured (missing REDIS_URL), the
server logs an error and falls back to the SQLite cache instead of failing
to start.