Piwis 3 Install Instant
sudo chmod 640 /var/www/piwis/config/config.ini.php sudo chown www-data:www-data /var/www/piwis/config/config.ini.php Step 6: Add Your First Tracking Code Copy the JavaScript snippet from the admin dashboard and paste it into your website’s <head> tag.
location ~ /\.ht deny all;
location ~ ^/(config|tmp|core|lang|plugins|vendor) deny all; return 403; piwis 3 install
cd /var/www sudo wget https://github.com/piwis/piwis/releases/download/3.0.0/piwis-3.0.0.zip sudo unzip piwis-3.0.0.zip -d piwis sudo chown -R www-data:www-data /var/www/piwis sudo chmod -R 755 /var/www/piwis/tmp Replace 3.0.0 with the actual latest version from the official releases page . Log into MySQL and create a database and user for Piwis. sudo chmod 640 /var/www/piwis/config/config
server listen 80; server_name stats.yourdomain.com; root /var/www/piwis; index index.php; location / try_files $uri $uri/ =404; server listen 80; server_name stats
CREATE DATABASE piwis_db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; CREATE USER 'piwis_user'@'localhost' IDENTIFIED BY 'strong_password_here'; GRANT ALL PRIVILEGES ON piwis_db.* TO 'piwis_user'@'localhost'; FLUSH PRIVILEGES; EXIT; Create an Nginx config file for your Piwis domain.
Piwis 3 is the latest evolution of the open-source web analytics platform (a community-driven fork of Matomo/Piwik). It prioritizes data privacy, simplicity, and low resource usage. Unlike heavy cloud alternatives, Piwis 3 can run on a $5 VPS or even shared hosting.