Skip to content



For many distributions, there are pre-packaged packages.


Install InfluxDB with the following commands:

sudo dpkg -i influxdb_1.7.10_amd64.deb

More help:

Install packages:

sudo apt update
sudo apt install git curl php-cli php-sqlite3 php-mbstring phpunit sqlite3 zip unzip

Install Composer:

php -r "copy('', 'composer-setup.php');"
sudo php composer-setup.php --install-dir=/usr/bin --filename=composer
php -r "unlink('composer-setup.php');"


# Clone this repository
git clone ""
cd server

# Install dependencies
composer install

# Create SQLite database
cat database/users.sql | sqlite3 database/users.sqlite

# Create default users
php database/default_users.php | sqlite3 database/users.sqlite

# Create InfluxDB default users and databases
bash database/

# Edit setting, set InfluxDB username and password
vi src/settings.php

# Edit InfluxDB configuration
# Enable authentication by setting the 'auth-enabled' option to 'true'
sudo vi /etc/influxdb/influxdb.conf

# Restart InfluxDB
sudo systemctl restart influxdb


Start the Application

You can then run it with PHP's built-in webserver:

php -S -t public public/index.php
# or run

Test your setup:

# Adjust variables
vi test/
# Run
bash test/

Insert some data

Register new user:

curl "" \
--data "username=my_username" \
--data "password=my_password"

Write data into InfluxDB:

curl -u "my_username:my_password" "" \
--data "test value=1"

Query for the data

Show user:

curl -u "my_username:my_password" ""

Query data from InfluxDB:

curl -u "public:livetracking" "" \
--data "q=SELECT * FROM test"


If you want to publish your setup on the internet you should use a proper web server.

A Lighttpd configuration (lighttpd.conf) can be found in the folder server. Lighttpd is also used as a reverse proxy for InfluxDB.

Run Phing build script:

vi build.xml
sudo bash